Skip to main content

Questions tagged [syntax]

{syntax} is about the principles and construction of the (La)TeX language.

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
RenatoP's user avatar
  • 851
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}{} &...
ddocc's user avatar
  • 39
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} \...
pindakazen's user avatar
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 "\...
Lorenzo Pompili's user avatar
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 ...
Jasper Habicht's user avatar
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 ...
peterh's user avatar
  • 341
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{}.
Đàm Tiến Đạt's user avatar
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? ...
ally69710's user avatar
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 ...
chocojunkie's user avatar
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]{...
17tmh's user avatar
  • 91
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 ...
Atom's user avatar
  • 665
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?
Alois Pichler's user avatar
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!
Hamza Nouar's user avatar
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!
user296028's user avatar
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 ...
Andre's user avatar
  • 1,023

15 30 50 per page
1
2 3 4 5
25