Skip to main content

All Questions

Tagged with
17 votes
3 answers
1k views

Can names of defined LaTeX commands be retrieved from a compiled PDF?

I am aware that a compiled PDF typically cannot be decompiled back into LaTeX without using workarounds. However, I am worried about portions of the information available in LaTeX still being ...
Toivo Säwén's user avatar
0 votes
0 answers
10 views

Fancyhdr - Missing number treated as zero in chapter [duplicate]

I tried to setup a fresh LaTeX template for my thesis. I wanted to display the chapter number and name as well as the section number and name in the header using fancyhdr following the convention . ...
delta_impulse's user avatar
2 votes
2 answers
196 views

Writing a class file from scratch and getting "Missing \begin{document}" error

I'm looking to write my own class file for a couple of reasons, but my main interest is better understanding LaTeX and how it works. I understand that I likely don't need to define my own class for ...
Metomorphose's user avatar
0 votes
0 answers
60 views

Using macros to do typesetting, and then delete them from source code for others?

I am currently using LyX for my mathematical typesetting, and I really like the macro functionality. However, I can imagine that the source code from such an output must be a pain for others to look ...
OGBond's user avatar
  • 75
0 votes
0 answers
427 views

Build and View as Ctrl/cmd+s instead of F5 in TeXStudio

So I have just changed my LaTeX editor to Texstudio instead of VSCode and I can't really get used to building my document on F5 instead of Ctrl (cmd) + S as in VSCode. Is there any way I can bind the ...
mathjoe's user avatar
1 vote
1 answer
88 views

Fail compilation for symbols which are typed manually (instead of using user-defined commands)

In my paper, I use a lot of commands instead of symbols. E.g. for a Lipschitz constant, instead of L I would define a command \lip which expands into L. But, occasionally, I or someone else may type L ...
Dmitry's user avatar
  • 240
1 vote
4 answers
152 views

Calling a command with a generated optional argument

I'm working on a macro that should save me a lot of time in the future. I've currently got one of the commands working that I wanted but I am having trouble with getting the second part to work. That ...
Bryce's user avatar
  • 83
1 vote
1 answer
317 views

Adding a macro to the -jobname section of the PDFLaTeX compiler (i.e., how to add dates to the PDF filename)

I would like to add a macro, and/or a user-defined command, to the "jobname" section of my compilation command. My ultimate goal is to add the current date (e.g., YYYY_MM_DD) to the PDF ...
DDCanada's user avatar
1 vote
1 answer
98 views

How to safely I check if a command/package is available at compilation time?

I want to produce a latex document that can compile with very few packages, let's say xcolor might be missing as an example (assume it is a document my bosses will compile and I do not control which ...
afiori's user avatar
  • 445
1 vote
1 answer
50 views

when compiling, miktex-dvipdfmx.exe occupied a huge memory(10GB+) and never finish [closed]

\documentclass[10pt,a4paper]{article} \usepackage{fontspec}%setmainfont的依赖 \usepackage[hidelinks]{hyperref}%hidelinks属性隐藏了link的颜色 \usepackage{etoolbox} \usepackage{ctex} \usepackage{CJK} \usepackage{...
nevermind_15's user avatar
0 votes
0 answers
35 views

How to extract expanded equations that use commands? [duplicate]

I have a document with a lot of equations that use commands to maintain consistency. For example, it looks like this \documentclass{article} \usepackage{amsmath} \newcommand{\numberOfDocuments}{\...
koalo's user avatar
  • 298
7 votes
4 answers
3k views

Using LaTeX while actively solving math problems?

The goal is to get those formulas on the page as quickly as you are thinking of them. So that you can actually solve math problems, or experiment with the mathematics itself. Question: What tools/...
user127715's user avatar
3 votes
1 answer
369 views

How to get an error if I use \a or \b in the file

I am writing a long paper and I have a few variables I use very frequently. They are labelled \z, \Z, \zt, \Zt etc. However I also have a few variables with names 'a' and 'b' in the document which I ...
skf23852's user avatar
  • 229
10 votes
2 answers
2k views

Why is the \bye command not used by LaTeX?

Is there a technical reason why the \bye TeX command was replaced in LaTeX by \begin{document} and \end{document}? I suspect there must be a good technical reason behind this, as otherwise it would ...
A Feldman's user avatar
  • 3,955
1 vote
1 answer
3k views

C-like #ifdef macros in LaTeX? [duplicate]

The C programming language has a preprocessor, which has #ifdef #endif macros that allow to preprocess a source code file before the compilation process. I am looking for something similar. What I ...
syntagma's user avatar
  • 369

15 30 50 per page