All Questions
123
questions
0
votes
2
answers
40
views
Default not working for new command
\newcommand{\initialize}[2][tmargin=1in, bmargin=1in, right=0.75in, left=0.75in]{
\geometry{#1}
\ifthenelse{\equal{#2}{}}{\setboolean{indent}{false}}{\setboolean{indent}{true}}
\...
3
votes
2
answers
194
views
How to figure out which package a command is from at any particular time?
I know there are some posts on this but I don't understand. So for instance I want to know which package contains \restatable.
I've tried \show\restatable but I don't understand what the relevant part ...
0
votes
0
answers
55
views
LaTeX package for keeping track of content in paper preliminaries
In scientific writing, there is often a section called "preliminaries" in papers providing essential definitions that are used later in the paper but only very briefly explained because ...
1
vote
1
answer
1k
views
error| TeX capacity exceeded, sorry [parameter stack size=10000]
When trying to use a specific package (ling-macros) I get this error.
Never had it before. It wont compile most of the time.
Rarely it compiles,but then my macro (\lam{P}{s,t} in the example) wont ...
3
votes
2
answers
665
views
Latex's packages, how to import a particular command/macro instead of using all?
In many programming languages, e.g. Python, to use a function we should explicitly declare the function name and the package containing that function. However, in Latex when we use \usepackage{<...
1
vote
0
answers
123
views
How to easily view source code of a package/command?
Is there a command that directly leads me to the source of a package or command? For example something like
$ texinfo viewsource amsmath
that shows me the code of amsmath or
$ texinfo viewsource ...
3
votes
1
answer
211
views
Coding non-trivial algorithms within TeX
This is kind of a hard question to formulate correctly, so forgive me if I have to clarify this question later.
I want to draw a lot of somewhat complex TikZ diagrams, which to be done effectively ...
1
vote
0
answers
169
views
What is the name of the font when labeling an inference rule?
What is the font of Foo in this inference rule?
The package being used for the inference rule is https://ctan.org/pkg/mathpartir?lang=en.
The example is found on page 7.
Another question if somebody ...
1
vote
1
answer
111
views
How to parse an itemized list the way moodle.sty does
A simple moodle.sty database contains code like that:
\begin{multi}{Name of the question}
Text of the question
\item first answer
\item secon answer
\item* the starred is the ...
3
votes
3
answers
169
views
Usage of \greadlist* from package 'listofitems'
I'm trying to define a LIST using \greadlist from the listofitems package. I would like to give a dynamic name to that list, something like LISTN, where N depends on a counter.
I tried something like
\...
2
votes
3
answers
260
views
I need to expand a macro defined in listofitems package
I'm building an exercise database. The exercises are stored in the form
\begin{Exer}
Text of the exercice
\item first answer
\item* second answer
\end{Exer}
where the * denotes the correct ...
0
votes
0
answers
74
views
Should I use low- or high-level commands for programming classes/packages?
To fix ideas, consider the following example. I can define the command
\def\linefill{\kernel@ifnextchar[{\@@linefill}{\@linefill}}
\def\@linefill{\@@linefill[1ex]}
\def\@@linefill[#1]{%
\...
1
vote
1
answer
69
views
How Can I to remove the second enumeration in the sections?
I wish to remove the second enumeration of sections in my text, i.e, where has section 1.1 I want section 1. How can I do it?
2
votes
1
answer
43
views
How to correctly define a new style in the biocon package so that its behavior matches the default behavior? Extra: Reset in each chapter
I am using the biocon package to deal with the scientific names of species in my thesis. Sometimes the names need to be accompanied by the strain of each species, so I decided to use the \newtaxon and ...
2
votes
2
answers
145
views
Problem with input inside input and @
I'm working in a package and want to create libraries, such as tikz and its usetikzlibrary.
However, as I use @ in private macro names, when a library uses another I get an error.
Here's my MWE (...