The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
1answer
123 views

ifthenelse equal string comparison fails

I am trying to fix some problems with the accessibility.sty package from www.babs.gmxhome.de There is one string comparison which always results to false, i.e. the language code definition will not ...
5
votes
0answers
4k views

Texmaker vs TeXstudio (comparison) [closed]

I would like to use either Texmaker or TeXstudio in Ubuntu 14.04 LTS. I want to use the latest version available via some PPA (not something installed "by hand" or even compiled!). I would like to use ...
0
votes
1answer
52 views

Inequality operators of both directions aligned vertically in one expression? [duplicate]

I would like to put inequality operators of both directions, i.e. < and >, aligned vertically in one expression. Can anyone help?
3
votes
1answer
58 views

Conditional structure based on \rand value comparison

I have a simple code that inserts a complex layout for figures and I would like to randomly alternate the position options (for instance, alternating between top and bottom positioning: ...
3
votes
0answers
46 views

What are the differences between mdframed vs. tcolorbox [duplicate]

I am familiar with the mdframed package and its usefulness when content crosses page boundaries. But lately, I have seen quite a few questions about the tcolorbox package and don't know much about it ...
9
votes
1answer
175 views

Why does amsmath define \mspace? \mskip seems fine and simple enough

amsmath.sty defines \mspace as follows: \newcommand{\mspace}[1]{\mskip#1\relax} What is the purpose of this definition? amsmath.pdf says that \mspace is the "equivalent of \hspace for math mode ...
1
vote
0answers
67 views

Best compiler for writing a thesis? [duplicate]

Which LaTeX compiler supports best writing a thesis? Which one provides the best compatibility with commonly used classes and packages? The compilers that I frequently use are: latex pdflatex ...
12
votes
2answers
138 views

Document equivalence

What is the best way to determine, for two arbitrary input files, if they will result in the same compiled document (disregarding timestamp information and external files)? Context I'm attempting to ...
13
votes
3answers
420 views

How to compare numbers with decimal point and logical OR operation?

I'm reading five values from external CSV file as [\sone, \stwo, \sthree, \sfour, \sfive]. Sample values could be [55.3, 89.0, 33.5, 40, 0.10]. Question : How to compare number with decimal points. ...
3
votes
0answers
387 views

Using Latexdiff math-markup for not comparing equations

I am using Latexdiff to compare 2 Latex files. I can do it successfully for text but it gives me problem with equations which I have a lot. I do not want to compare the equations. If I understand ...
7
votes
2answers
523 views

How to compare two TeX codes and mark differences with color

I would like to find easy tool, which compares two TeX codes and generates a PDF file of the first code, in which the differences from the second code are marked by a given color. I use winedt 7.0 ...
15
votes
3answers
1k views

Difference between \mskip and \mkern

What are the differences between \mskip and \mkern? The TeXbook writes the following (ch. 18): You can insert math glue into any formula just by giving the command ‘\mskip⟨muglue⟩’. [...] ...
5
votes
2answers
154 views

Ignoring Punctuation during Comparison

I am trying to compare two strings and ignore punctuation during the comparison. I thought that catcode redefinition would be a good way to proceed. But, obviously, the use of \catcode has a great ...
4
votes
1answer
369 views

What is the difference between the scalefnt and anyfontsize packages?

What is the difference between the scalefnt and anyfontsize packages? Even though I use scalefnt, I get font size substitutions of up to "2.30002pt" in a document I am currently editing. The ...
8
votes
3answers
264 views

How to compare two dvi files?

Is there any tool that compares two dvi files. I would like to check if they are identical after I make some changes with source tex file.
10
votes
1answer
500 views

Availability of LaTeX packages' functionality in ConTeXt, XeTeX, and LuaTeX

I am considering trying out ConTeXt, XeTeX, and LuaTeX, but one concern of mine is the fact that I am using a large number of LaTeX packages. There are a number of questions comparing these TeX ...
30
votes
2answers
5k views

What is the difference between \nobreak and \nolinebreak?

What is the difference between \nobreak and \nolinebreak? I noticed that a lot of solutions in TeX.SE use the former, but I thought the latter is LaTeX while the former is plain TeX. And LaTeX macros ...
3
votes
0answers
591 views

Why do people chose Latex for mathematical writing? [closed]

I'm trying to make the transition from Word to Latex for mathematical writing. But the more I learn about it, the less sure I am that I should make this transition. Typographical Quality For example ...
6
votes
2answers
2k views

packages times(-itsc), txfonts, newtxtext/newtxmath, and mathptmx: relation and interactions

I am always using the packages times (actually: times-itsc from here in order to get italic small-caps) and txfonts. I use txfonts for the \coloneqq (:=) symbol. My loading order has traditionally and ...
6
votes
1answer
984 views

What is the difference between LaTeX and HTML? [closed]

Every now and then I need to compare LaTeX to HTML to someone, and it can be hard to give a succinct answer that demonstrates the purpose of both, and why one wouldn't want to abuse one for the ...
16
votes
1answer
11k views

difference between \vspace and \vspace* for negative arguments

Is there ever a difference between \vspace{...} and \vspace*{...} if a negative argument is supplied? Most importantly, does the choice of which macro to use have an influence on page breaking ...
31
votes
3answers
4k views

Difference between various methods for producing text in math mode

What is the difference between \text, \textrm, \textnormal, and \mbox (and possibly other commands commonly used to produce text in math mode)? Various (La)TeX tutorials teach different methods, and ...
16
votes
1answer
1k views

Proper use of cmap and mmap

I am curious about the differences between \usepackage{cmap} \usepackage[resetfonts]{cmap} \usepackage{mmap} (= \usepackage[useTeX]{mmap}) \usepackage[noTeX]{mmap} What are their precise ...
9
votes
1answer
1k views

Handling \ifnum's “! Missing number, treated as zero.”

Let's say I have a variable, which may - or may NOT - be a number; how can I handle the cases when it isn't a number, without crashing with "! Missing number, treated as zero." ? In practical terms, ...
3
votes
1answer
349 views

Highlighting changes in code

I want to print code, preferably syntax highlighted, and then combine this with a diff where the included code is the newer version of the code. I want lines that have been added or changed to be ...
15
votes
1answer
584 views

LuaLaTeX + fontspec: cannot compare documents with Acrobat

I use the option "compare documents" in Adobe Acrobat Pro a lot to highlight changes between revisions. What I just noticed is, if I compile a simple document such as the one below with LuaLaTeX + ...
12
votes
2answers
1k views

Alphabetic comparison of two strings

I tried to compare two strings (alphabetically), but I found some problems using the \pdfstrcmp command: 1- because it needs pdftex; 2- because it is case sensitive. The first problem is not so ...
4
votes
1answer
239 views

How to compare two dates using TeX primitives

This is a follow up to TeX capacity exceeded while parsing a date string I want to compare two dates, say today's date and a due date. I have the due date information stored (as number strings) in ...
8
votes
2answers
274 views

Why are some macros undefined inside an if case?

I'm trying to check if a string is only of one char, and I ran into this problem: LaTeX complains that \StrLeft in the comparison takes and additional argument: ! Argument of \@secondoftwo has an ...
14
votes
7answers
3k views

Word 2010 on typesetting math [closed]

I tried to find that online, but all I found was: "Word bad, (La)TeX good! Word ugly, (La)TeX pretty!". I want an honest take from someone who used the new Math system in Word 2010, preferably who ...
6
votes
1answer
127 views

How can I effectively diff 2 versions of a book produced by ConTeXt?

I have just made significant revisions to my thesis which has been typeset with ConTeXt. The project file pulls from approximately 20-30 files spread over 8 directories producing a document of 414 ...
25
votes
6answers
3k views

Persuade me to write my thesis in ConTeXt, or not

I'm going to write my master thesis in Computer Science, regarding Operation Research, (in Italian). I have about a month and a half to collect the results and write everything down. I have had a ...
48
votes
7answers
3k views

Comparing the output of two PDFs

Sometimes I want to compare the results of two different settings to see which gives better results (e.g. during the final fine tuning before handing in a document). Such settings can result in small ...
7
votes
1answer
3k views

How to effectively compare latex files

I have two latex source files, one created by me and the other modified by a colleague. Introduced modifications, unfortunately, also regard line breaks and spacing (source text line breaks, not ...
5
votes
5answers
313 views

Which open source hosting facilities accept LPPL?

Is there a list of open source hosting facilities which accept (La)TeX packages published under the LPPL license? Which open source hosting facility did you chose for your (La)TeX project and why?
6
votes
1answer
261 views

How costly is it to store content in a box register?

I wonder how costly it is in terms of compilations speed and also other terms like memory etc., to store some content in a box and use this box then afterwards only once (or maybe twice). Is the ...
9
votes
2answers
900 views

LaTeX programming comparison operators

The example for the forloop package is \newcounter{ct}\forloop{ct}{1}{\value{ct} < 5}{\arabic{ct}}. I need to compare two counters having the first run up to the second. <= doesnt work, neither ...
5
votes
1answer
316 views

TikZ: How to compare approximate equality of dimensions?

When scaling tikzpicture using option scale, some points that had equal coordinates appear to be shifted a little bit. So the precise comparision \ifdim \y1 = \y2 will not do anymore. I'm aware of ...
17
votes
2answers
682 views

Handling different time zones

I'm looking for a way to handle date/times with different time zones. For example in svn-multi and filemod a date and time with a timezone is returned. I like to be able to compare times in different ...
7
votes
2answers
1k views

LaTeX: Use command argument in conditional?

I'm in the process of writing a command that outputs a certain text only if its argument is a nonzero number. I'd like to be able to write something like: \newcommand{mycommand}[1]{ \if{#1 != 0} Some ...
4
votes
2answers
713 views

Compare a character to a character code?

How can one compare a character (e.g. "U") with a character code in a certain font (e.g. "\char85"). I'd expect the following to work: \documentclass{article} \usepackage{ifthen} \begin{document} ...