Skip to main content

All Questions

Tagged with
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}} \...
xyz04's user avatar
  • 137
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 ...
Hao S's user avatar
  • 878
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 ...
DCTLib's user avatar
  • 1,914
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 ...
hal3m's user avatar
  • 33
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{<...
Leonard Neon's user avatar
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 ...
vise87785's user avatar
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 ...
N. Virgo's user avatar
  • 4,289
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 ...
Rakozay's user avatar
  • 11
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 ...
user126154's user avatar
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 \...
user126154's user avatar
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 ...
user126154's user avatar
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]{% \...
Diego Sejas's user avatar
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?
Cícero Hitzschky's user avatar
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 ...
Daniel Valencia C.'s user avatar
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 (...
Jander's user avatar
  • 1,160

15 30 50 per page
1
2 3 4 5
9