Compare commits

..

No commits in common. "ed40bc4db83aba27a3788fb3634597de5e958668" and "fb80c61139a5b22a88cdf677421e8278acf1aca0" have entirely different histories.

4 changed files with 5 additions and 9 deletions

View file

@ -170,7 +170,7 @@ class Context:
def unset_data(self, key: str):
if key == "":
self._doc = {}
data = self._data
data = self._doc
keys = key.split(".")
for k in keys[:-1]:
data = data[k]

View file

@ -20,7 +20,6 @@
\pdfglyphtounicode{parenrightBigg}{0029}
\pdfglyphtounicode{radicalbig}{221A}
\pdfglyphtounicode{radicalBig}{221A}
\input minim-xmp.tex

View file

@ -7,13 +7,13 @@
\def\stdskip{\vskip 3pt}
\def\tocsection#1#2#3#4{
{\settextsize{14}\line{\bf\hbox to 2em{#2\hfil}#4~\hfil\pagelink{#1}}\stdskip}
\line{\settextsize{14}\bf\hbox to 2em{#2\hfil}#4~\hfil\pagelink{#1}}\stdskip
}
\def\tocsubsection#1#2#3#4{
\line{\hskip 1.5cm \hbox to 3em{#2\hfil}#4~\hfil\pagelink{#1}}\stdskip
\line{\bf\hskip 1.5cm \hbox to 3em{#2\hfil}#4~\hfil\pagelink{#1}}\stdskip
}
\def\tocsubsubsection#1#2#3#4{
\line{\hskip 3cm \hbox to 4em{#2\hfil}#4~\hfil\pagelink{#1}}\stdskip
\line{\bf\hskip 3cm \hbox to 4em{#2\hfil}#4~\hfil\pagelink{#1}}\stdskip
}
\def\tocpicture#1#2#3#4{}

View file

@ -326,10 +326,7 @@ class TransformProcessor(NOPProcessor):
else:
e.attributes["number"] = self.context.get_data("figure_number_generator")(e, self.context)
self.context.get_data("obj_map")[e.identifier] = e
self.context.set_data("current_figure", e)
r = super().transform_Figure(e)
self.context.unset_data("current_figure")
return r
return super().transform_Figure(e)
def transform_Link(self, e: Link) -> Link:
e = FLink(*e.content, url=e.url, identifier=e.identifier, attributes=e.attributes, classes=e.classes, obj_map=self.context.get_data("obj_map"))