is a tag to be used for questions about assigning or using meaningful markup.

learn more… | top users | synonyms

0
votes
0answers
34 views

Is there a semantic definition command?

Every time I want to emphasize a definition word in a paragraph I need to explicitly state the formatting with \mathbf{<word(s)>}. But I'd like to use a semantic command like ...
4
votes
2answers
58 views

Is it possible to put brackets round a Forest tree?

I want to create a tree using forest with large \llbracket and \rrbracket around it (semantic interpretation brackets). schemabox looks hopeful but doesn't seem to work. How do I do this? ...
4
votes
2answers
113 views

Is there a semantic way to typeset table headers in LaTeX?

Usually, when I add tables I use \usepackage{booktabs} and code that looks like this: \begin{table}[ht] \centering \begin{tabular}{l|rrr} \toprule Country / Property & Population ...
2
votes
1answer
53 views

Increase vertical space between inference rules

I am using the semantic package with beamer to make some inference rules for a language. There are about 10 relatively small-sized rules and I want them to be all in one slide. However, the rules are ...
5
votes
1answer
116 views

What's the difference between \|, \textdoublevertline, \textdoublepipe and \parallel?

I'm currently writing my bachelors thesis about on-line handwriting recognition of mathematical formulae (see http://write-math.com). I'm currently only recognizing symbols with the same technique as ...
1
vote
1answer
72 views

TeX capacity exceeded + Semantics package [closed]

I get the following error: ! TeX capacity exceeded, sorry [input stack size=5000]. \do #1#2#3->\mathcode `#1 ="8000 l.14 ..._{1}\; a_{2} -> v_{2}}{a_{1} - a_{2} -> v} ! ...
12
votes
1answer
229 views

Proper semantics for italicized foreign words and phrases

In English, foreign words and phrases such as per se and ibid. should be italicized, as shown here. There might be a number of ways to accomplish this in LaTeX: with \emph{per se} with \textit{per ...
2
votes
1answer
68 views

Semantic table markup with environments inside {tabular}

I run into issues trying to markup tables semantically in LaTeX. Background Either standard \hline together with \firsthline and \lasthline from array.sty (I think) or \midrule, \toprule and ...
12
votes
1answer
4k views

Angle symbols in LaTeX [closed]

I will write a lot about Euclidean Geometry the next time. This means I need to denote angles. The symbol we use in class looks like \sphericalangle, but I've just seen that there is an \angle symbol ...
9
votes
1answer
90 views

Using LaTeX3 syntax in document commands

I have already read much about LaTeX3 on TeX.SE, in TeX Live’s documentation and in TUGBoat, but there is something I do not yet understand: is the expl3 syntax meant to be used in document-level ...
6
votes
2answers
362 views

What are semantically correct alternatives to \text in math mode?

I have used \text{something} several times in math mode. The result is rendered like I want it to be rendered, but I think this might not the best way to do it in LaTeX. What I currently do ...
4
votes
1answer
139 views

correct environment/command for booktitles, names, etc

What is "the correct" environment/command for booktitles, names, songtitles, names of movies or other papers? Example Sentence: Some ideas of that are also reviewed in \c1{Max Mox}'s interview ...
11
votes
1answer
246 views

Make a command to mark a text and class them for text analyze

Sorry for my English, I'm French and it's my first post on this forum, but I'm a frequent visitor of this forum, thanks for all ;) My problem is this : I'm working with transcriptions of 35 ...
8
votes
2answers
494 views

What exactly are the semantics of noun case?

I'm a LaTeX and LyX beginner. One thing that's making me scratch my head is LyX's Toggle noun button. According to the manual, I should use noun case for people's names, and the default rendering ...
4
votes
1answer
499 views

Semantics for parametric plots with pgfplots

I wasn't able to find in the pgfplots manual the exact semantics for pairwise mathematical expressions. Could you clarify the following variations? % Assume x(t) is parametrized by t in [0,1] and ...
0
votes
1answer
436 views

How to write left aligned multi-line conclusion in inference rule?

This question is very similar to How to write centered multi-line conclusion in inference rule?. However, I can't figure out how to align an multi-line conclusion on the left. What am I missing? I'm ...
19
votes
1answer
206 views

How to balance being semantic, and retaining control of formatting?

I am on a "semantic" kick recently. For example, while in the past I might have written the direct sum of two vector spaces as $V\oplus W$, I now define \newcommand{\directsum}{\oplus} and write ...
15
votes
3answers
16k views

\bar vs. \overline - when to use what, semantically?

Following the question "The \bar and \overline commands" which is simply about the lengths of both, I'd like to know when to use \bar and when to use \overline from a semantically viewpoint. I always ...
55
votes
6answers
3k views

Does TeX/LaTeX give a headstart with other programming languages?

I've seen many programmers here at tex.se, and I'd like to know how they view TeX/LaTeX as a programming language in relation to other languages, and whether it would boost my progress as a beginner ...
24
votes
4answers
4k views

Numbers outside Math environment

Should numbers inside the text be placed inside a math environment? For example, if I am writing ...indent code by 4 spaces..., should I write it this way or ...indent code by $4$ spaces...? ...
6
votes
3answers
287 views

Math mode commands with more semantics?

I accustomed myself to define my own little macros for any mathematical expression I use frequently. For example, I have a macro for the expected value of a random variable: ...
5
votes
1answer
675 views

Inserting arrays into semantic's inference rules

I want to typeset inference rules containing tables (or arrays) in the premises. I'm using the semantic package, which sets the premises (and conclusion) in math mode, so I thought this might work: ...
1
vote
2answers
879 views

Using there exists symbol within inference of the semantic package

I am using the semantic package to write inference rules. I need to put a there exists symbol which is standard to LaTeX using $\exists$. However, when used within the semantic package's inference ...
2
votes
2answers
354 views

How to automatically separate words in inference from semantic package?

I'm trying to use inference from semantic package to describe static semantics of a language. I would like to separate nonterminals in inference rules with spaces without inserting them by hand. Is ...
18
votes
5answers
5k views

Does LaTeX define a semantic equivalent of \textbf ?

In HTML, there's the distinction between <em> as semantic markup and <i> as its pure-formatting equivalent. LaTeX has the same distinction: \emph is semantic markup, rendered using ...
41
votes
4answers
802 views

Do semantics matter in LaTeX? If not, why not?

When I ask questions about achieving some particular layout LaTeX, I get answers that suggest I should use constructs that don't make sense for their semantics. For example, I wanted to intent a ...
82
votes
2answers
40k views

\emph or \textit

In the comments section of Does it matter if I use \textit or \it, I asked for a clarification of these points. The clarification has mostly been made, but it was requested that I turn this into a ...
16
votes
3answers
2k views

What is the deal about these semantic vs syntactic commands?

I keep hearing people on this site talking about "semantic" vs "syntactic" commands and that the "semantic" ones are somehow better. I don't really get what they are talking about, could you explain ...