summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2024-05-31 21:39:36 +0000
committerKarl Berry <karl@freefriends.org>2024-05-31 21:39:36 +0000
commited42a526401fca020826c26e5df4cbc7f7787f7b (patch)
tree2c411e7434e54c7a1167e7453a877bcc818fa895
parent843f3f7cc8e4c47f65c7a33ef1c23c1ef11a96f8 (diff)
ideavault (31may24)
git-svn-id: svn://tug.org/texlive/trunk@71397 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r--Master/texmf-dist/doc/lualatex/ideavault/ideavault-doc.pdfbin35243 -> 35625 bytes
-rw-r--r--Master/texmf-dist/doc/lualatex/ideavault/ideavault-doc.tex10
-rw-r--r--Master/texmf-dist/tex/lualatex/ideavault/ideavault-lua.lua16
-rw-r--r--Master/texmf-dist/tex/lualatex/ideavault/ideavault.sty2
4 files changed, 22 insertions, 6 deletions
diff --git a/Master/texmf-dist/doc/lualatex/ideavault/ideavault-doc.pdf b/Master/texmf-dist/doc/lualatex/ideavault/ideavault-doc.pdf
index 4f3d1562ed0..fc48b1384ee 100644
--- a/Master/texmf-dist/doc/lualatex/ideavault/ideavault-doc.pdf
+++ b/Master/texmf-dist/doc/lualatex/ideavault/ideavault-doc.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/lualatex/ideavault/ideavault-doc.tex b/Master/texmf-dist/doc/lualatex/ideavault/ideavault-doc.tex
index 7bba38fc449..0bea7622c68 100644
--- a/Master/texmf-dist/doc/lualatex/ideavault/ideavault-doc.tex
+++ b/Master/texmf-dist/doc/lualatex/ideavault/ideavault-doc.tex
@@ -43,7 +43,7 @@
\item \texttt{tags}: each tag is Lua string, multiple tags are separated with comma.
\item \texttt{weight}: a number used for sorting ideas when multiple are printed at the same time. By default, equal to \texttt{-1}.
\end{itemize}
-\par Note: due to some strange problems on LaTeX/Lua connection, for ideas with exactly one dependency, the \{\} needs to be duplicated, while for multi dependency there is no need.
+\par Note: due to how \texttt{xkeyval} treats \{\}, for ideas with exactly one dependency, You need to add one space after the dependency, while for multi dependency there is no need.
\par Example:
\begin{verbatim}
\createIdea[somePrefix]{Not So Great Idea}{
@@ -53,7 +53,7 @@
\createIdea[somePrefix]{Great Idea}{
\par Long content
\par Very Interesting
-}[{{"somePrefix", "Not So Great Idea"}}]["tag1"][13]
+}[{"somePrefix", "Not So Great Idea"} ]["tag1"][13]
\end{verbatim}
\subsection{\textbackslash{}printIdea}
@@ -113,6 +113,8 @@
\item \texttt{s}: Reserve some space using needspace to avoid awkward pagebreaks
\item \texttt{e}: emph the name
\item \texttt{q}: do not print the name
+\item \texttt{p}: New page before printing the idea (useful when doing serial printing, for example via \texttt{printAllWithTag})
+\item \texttt{P}: New page after printing the idea (useful when doing serial printing, for example via \texttt{printAllWithTag})
\end{itemize}
\section{Example}
@@ -125,7 +127,7 @@
\createIdea[somePrefix]{Great Idea}{
\par Long content
\par Very Interesting
-}[{{"somePrefix", "Not So Great Idea"}}]["tag1"][13]
+}[{"somePrefix", "Not So Great Idea"} ]["tag1"][13]
\createIdea[somePrefix2]{Third Idea}{
\par Third try is even longer
@@ -155,7 +157,7 @@
\createIdea[somePrefix]{Great Idea}{
\par Long content
\par Very Interesting
-}[{{"somePrefix", "Not So Great Idea"}}]["tag1"][13]
+}[{"somePrefix", "Not So Great Idea"} ]["tag1"][13]
\createIdea[somePrefix2]{Third Idea}{
\par Third try is even longer
diff --git a/Master/texmf-dist/tex/lualatex/ideavault/ideavault-lua.lua b/Master/texmf-dist/tex/lualatex/ideavault/ideavault-lua.lua
index 6d4de1e383a..09bade82a27 100644
--- a/Master/texmf-dist/tex/lualatex/ideavault/ideavault-lua.lua
+++ b/Master/texmf-dist/tex/lualatex/ideavault/ideavault-lua.lua
@@ -195,6 +195,8 @@ function IdeaClass:printSelf(style)
local needSpace = false
local emph = false
local quiet = false
+ local preNewPage = false
+ local postNewPage = false
for c in style:gmatch"."
do
if (c == "f") then
@@ -210,11 +212,19 @@ function IdeaClass:printSelf(style)
elseif (c == "e") then
emph = true
elseif (c == "q") then
- quiet = true
+ quiet = true
+ elseif (c == "p") then
+ preNewPage = true
+ elseif (c == "P") then
+ postNewPage = true
else
die("Unknown style: '" .. c .. "'")
end
end
+ if (preNewPage)
+ then
+ tex.sprint("\\newpage%")
+ end
if (needSpace)
then
tex.sprint("\\needspace{5cm}%")
@@ -272,6 +282,10 @@ function IdeaClass:printSelf(style)
then
tex.sprint("\\bookUp%")
end
+ if (postNewPage)
+ then
+ tex.sprint("\\newpage%")
+ end
end
function IdeaClass:printDependencies()
diff --git a/Master/texmf-dist/tex/lualatex/ideavault/ideavault.sty b/Master/texmf-dist/tex/lualatex/ideavault/ideavault.sty
index 07d60006457..4b5c72a3515 100644
--- a/Master/texmf-dist/tex/lualatex/ideavault/ideavault.sty
+++ b/Master/texmf-dist/tex/lualatex/ideavault/ideavault.sty
@@ -17,7 +17,7 @@
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{ideavault}[1.0.1]
+\ProvidesPackage{ideavault}[1.0.3]
\RequirePackage[open,openlevel=2,atend]{bookmark}
\RequirePackage{xargs}
\RequirePackage{luacode}