forked from brucemiller/LaTeXML
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Allow redefinitions of locked from .ltxml bindings and from AddToMacro * Rename (nonstd) bibliography counter (used for IDs) to @Lx@bibliography, to avoid apparent redefinitions of \thebibliography * Add (convoluted) test case to test definition locks * Pearrange testlocks test case file locations
- Loading branch information
1 parent
5e04788
commit fcfe73d
Showing
11 changed files
with
97 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
path = ../ | ||
preload = testlocks.sty | ||
source = ../testlocks.tex | ||
format = xml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<?latexml package="testlocks"?> | ||
<?latexml class="article"?> | ||
<?latexml RelaxNGSchema="LaTeXML"?> | ||
<document xmlns="http://dlmf.nist.gov/LaTeXML"> | ||
<resource src="LaTeXML.css" type="text/css"/> | ||
<resource src="ltx-article.css" type="text/css"/> | ||
<para xml:id="p1"> | ||
<p>testlocks FOO-A:testlocks FOO-A</p> | ||
</para> | ||
<para xml:id="p2"> | ||
<p>testlocks FOO-B:testlocks FOO-B</p> | ||
</para> | ||
<para xml:id="p3"> | ||
<p>testlocks FOO-C:testlocks FOO-C</p> | ||
</para> | ||
<para xml:id="p4"> | ||
<p>testlocks-b FOO-D:testlocks-b FOO-D</p> | ||
</para> | ||
<para xml:id="p5"> | ||
<p>testlocks FOO-E:testlocks FOO-E</p> | ||
</para> | ||
</document> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
|
||
% Ignored attempt to redefine \fooC | ||
\def\fooC{testlocks-a FOO-C} | ||
\RequirePackage{testlocks-b}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package LaTeXML::Package::Pool; | ||
use strict; | ||
use warnings; | ||
use LaTeXML::Package; | ||
|
||
# RE-defintions (allowed) | ||
DefMacro('\fooD', "testlocks-b FOO-D", locked => 1); | ||
|
||
# Definition, BUT will be RE-defined by testlocks.sty | ||
DefMacro('\fooE', "testlocks-b FOO-E", locked => 1); | ||
|
||
1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package LaTeXML::Package::Pool; | ||
use strict; | ||
use warnings; | ||
use LaTeXML::Package; | ||
|
||
DefMacro('\fooA', "testlocks FOO-A", locked => 1); | ||
DefMacro('\fooB', "testlocks FOO-B", locked => 1); | ||
DefMacro('\fooC', "testlocks FOO-C", locked => 1); | ||
DefMacro('\fooD', "testlocks FOO-D", locked => 1); | ||
|
||
InputDefinitions("testlocks-a", type => 'sty', noltxml => 1); | ||
|
||
# This gets defined in testlocks-b.sty.ltxml, input from testlocks-a.sty | ||
DefMacro('\fooE', "testlocks FOO-E", locked => 1); | ||
|
||
1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
\documentclass{article} | ||
%\usepackage{testlocks} | ||
% Ignored re-definition | ||
\def\fooB{Locak FOO-B} | ||
\begin{document} | ||
testlocks FOO-A:\fooA | ||
|
||
testlocks FOO-B:\fooB | ||
|
||
testlocks FOO-C:\fooC | ||
|
||
testlocks-b FOO-D:\fooD | ||
|
||
testlocks FOO-E:\fooE | ||
|
||
\end{document} |