Questions tagged [syntax]
{syntax} is about the principles and construction of the (La)TeX language.
366
questions
0
votes
0
answers
35
views
symbol % how and when can I use ir? [duplicate]
I would have some explanation about the % symbols: what do it is intended for? where do I have to use it?
Is there a doc that explain it?
Thank you
Renato
0
votes
3
answers
39
views
Latex error: Package array Error: Illegal pream-token (3.5cm): c' used
I have a table that has this command.
\begin{table}[ht]
\centering
\centering\caption{Table features}
\begin{tabular}{ r{3.5cm} p{5.50cm} p{5.50cm} }
\toprule
& \multicolumn{1}{r}{} &...
0
votes
1
answer
24
views
Error in reproducing tex on sentence bracketing in gb4e [duplicate]
There is an error occurred when I tried to reproduce a tex document to produce sentence bracketing in gb4e.
This is the tex document, courtesy of Alan Munn:
\documentclass{article}
\usepackage{gb4e}
\...
4
votes
2
answers
109
views
Redefine the command \cite to be able to use an additional syntax
Background
The package amsrefs redefines the command \cite so that one can use the syntax "\cite{book-name}*{optional-argument}" to produce (essentially) the same output as the usual "\...
5
votes
1
answer
141
views
Expl3: When to define a variable as \l_... or as \g_... type variable?
Is the choice whether a variable should be a \g_ or l_ type variable something a programmer can more or less freely decide on? Or are there some strict rules or at least some best-practices that a ...
0
votes
1
answer
64
views
Conditional expressions look always false
Experimenting with conditional expressions, namely with this trivial if...
\def\testvar{testvalue}
\if\testvar{testvalue}{istrue}\else{isfalse}\fi
I get always isfalse. I think I did everything as I ...
0
votes
1
answer
98
views
How to write the dash of discrete math in latex?
I don't know how to use dash like this. It's not \bar{}.
2
votes
1
answer
88
views
Stacking multiple TikZ tree labels?
I have a question related to the labelling of TikZ circles within a forest tree. Is it possible to stack multiple labels below the circle so that they would appear under one another, like this?
...
3
votes
2
answers
160
views
Capital R with whitespace padding
I'm a math and latex novice, and I'm trying to write out the following rule with latex:
I'm having a hard time with this capital R. In the textbook, it has that nice side padding but when I type ...
1
vote
1
answer
74
views
TikZ math library syntax problem
I am using TikZ math library which is great.
However, I can't get my head around this (see MWE).
I missed something from the documentation (https://tikz.dev/library-math)?
\documentclass[tikz]{...
1
vote
1
answer
100
views
Can any character be used in place of a backslash?
In Chapter 3 of The TeXbook, Knuth writes:
TeX allows any character to be used for escapes, but the “backslash” character ‘\’ is usually adopted for this purpose...
This has me confused, for I have ...
0
votes
0
answers
24
views
Syntax of LaTeX macros [duplicate]
The TeX primitive \over has syntax {… \over …}.
Is it possible to define a macro \foo, say, with syntax {…}\foo{…} without enclosing brackets?
4
votes
1
answer
374
views
What was the reason behind using sqrt (square root) to name the nth root command? [closed]
Clearly talking about:
\sqrt[n]{x}
here!
1
vote
1
answer
114
views
How to draw a curve to indicate syntactic domain in the qtree?
How to draw a curved line in the qtree and add a description like the following picture?
\Tree [.n,v,aP [.n,v,a ] [.$\sqrt{P}$ [.$\sqrt{\alpha}$ ] [.$\sqrt{\beta}$ ] ] ]
Thanks!
0
votes
0
answers
35
views
Is the preferred use of tilde command with braces?
It looks like the standard way of using the \tilde is as in $\tilde{a}$. However, I saw a latex document in which the usage was $\tilde a$.
Will the two ways of defining a tilde produce the same ...