The tag has no wiki summary.

learn more… | top users | synonyms

1
vote
1answer
78 views

formatting and display of complex text that is not supposed to be mathematical

I have been messing around with these two sections for awhile now and I cannot seem to get them to compile correctly. Both are complex in terms of the symbols used and the fact that I believe Latex ...
6
votes
1answer
486 views

Create sort of custom trapezoid text box

I want to create a sort of text box, path you maybe want to call it, using TikZ, which has the shape of a triangle. I then want the text follows the hypotenuse of the triangle. / / The text ...
21
votes
4answers
30k views

How to make text aligned left/center/right in the same line?

I am trying to align some text to left/center/right in the same line. For example, I want to put my phone number on the left, my name in the center, and my email on the right, how do I do that?
7
votes
1answer
452 views

Macro to extract (typeset) 'plain text' from a command?

Sorry to come back again with a similar post title (I had a post with this same title, then renamed it to PDF Metadata - Macro to extract (typeset) 'plain text' from a command?) - but I hope now the ...
8
votes
5answers
4k views

fully stretch text horizontally on page

Is there a way to fully stretch one line of text on the full width of the page, without manually setting the letter spacing, no matter how many characters on the line?
12
votes
3answers
999 views

'Wordart' in (La)TeX

Would it be feasible to try to reproduce something like the image below in TeX? I just wanted to ask the advice of some experts before I invested too much time trying. I've already messed around with ...
9
votes
2answers
154 views

How to obtain a text surrounded with begin and end commands

I want to obtain a text surrounded with begin and end commands, as the following. \begincommand Here any text is written. \endcommand \surroundedtext % this command is replaced with "Here any text ...
0
votes
2answers
259 views

Prevent overlapping of elements on page

Is there a command one can use in XeLaTeX and the rest of the TeX family to completely prevent any overlapping from occurring? Perhaps it could break the compilation with an error to alert you? I have ...
25
votes
3answers
7k views

How do I get transparent text?

I am trying to make a picture for the cover of my thesis using LaTeX. I have a background picture and I would like to have transparent (math) text on top of it, how do I achieve this? I have tried to ...
9
votes
3answers
2k views

Mirror effect in documents

The following example (links to pdf) in the TeX Showcase has no provided source. The book Fearless Symmetry by Ash and Gross seems to use a similar style. Where can I find hints for typesetting ...
5
votes
2answers
336 views

macro for custom indexing with conditionals and text recognition

I was unable to solve this by myself and by searching this wonderful site. The problem is with indexing. I still consider myself as a LaTeX newbie :) The situation: - I'm working on an english book ...
5
votes
2answers
412 views

Feeding arguments to xstring macros

In Footnotes with automatic final period, the comment was made to provide the possibility to add a period . to a footnote conditionally, based on whether the footnote already has a period or not. I ...
4
votes
1answer
2k views

Newline within underbrace in math environment [duplicate]

Possible Duplicate: How can I force a line break within \text{…}? In the MWE below, is it possible to force a line break in the text under the Z so that the overall equation is more ...
6
votes
1answer
2k 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 ...
3
votes
1answer
711 views

Letting strings start with a capital letter

I am writing a small book and try to build up an index reference. To make it a little easier I wrote a small script that enables my to type a word and also add it to the index: ...
9
votes
1answer
782 views

How to exclude text portions by simply setting a variable or option?

I'm writing a document where some text portions are confidential and would therefore like to create an environment (e.g. confidential) which I can then exclude from the PDF by simply setting a ...
3
votes
2answers
632 views

How to make overlaid text?

Is there a nice way to overlay text in the space of one character? So if text is overlaid as I described it would almost result in a black square.
5
votes
2answers
248 views

Floating point formatting in TeX

After long I was exposed to TeX and to a problem that seems to be so simple in traditional languages but surprisingly hard to solve in TeX. We have system out of our scope of control that provides us ...
2
votes
2answers
270 views

Include LaTeX file named with substring of current filename

I'm frequently creating presentations with beamer and need both the handout and the presentation itself. To avoid editing the file when I need to compile the other, I use \ifdefined\ishandout ... at ...
3
votes
3answers
618 views

Tikz rectangle hiding text!

Using this code to achieve an effect as in the question Page border coloured. \usepackage{tikz} \usetikzlibrary{calc} \newcommand{\pageframe}{% \begin{tikzpicture}[remember picture,overlay] ...
0
votes
1answer
166 views

How can I replace parts of an included PDF file?

I'm using pdflatex and \epsfig{file=img.pdf}. I'd like to replace some text in img.pdf. It seems that psfrag can do this with latex, and there is mention of pstools doing this with pdflatex, but it ...
7
votes
4answers
680 views

Representing linguistic text annotations in LaTeX

I'm writing a document describing the semantics of opinion phrases in English, and in order to do so, I'm annotating particular spans of text as having particular semantic functions within the ...
5
votes
2answers
172 views

Changing catcode for commercial at (@) inside a macro to get it matched in pattern.

This question is related to TikZ: pgfutil-common: pgfutil@in@ - how does it work? and is a result of coping with that problem. I've already read How to change #catcode in a macro, but it didn't help ...
5
votes
1answer
367 views

TikZ: pgfutil-common: pgfutil@in@ - how does it work?

Having been writing small lib for TikZ, I tried to use this macro in order to search for @. Code compiled, but the result was false, despite that I was sure it was in tested string. So, I decided to ...
2
votes
2answers
962 views

applying math formatting to a non-math font

This post summarizes a digression that began in comments to a different post with User JFBU. The basic question here is what commands are needed to get the full character-set of a non-math font (in ...
6
votes
2answers
724 views

“Pretty-printing” numbers with significant figures

I like to use LaTeX to display data in figures and tables. I've used arrayjobx.sty and fp.sty to extremely good effect to handle data that comes out of, e.g., Excel or other Windoze-world data ...
38
votes
4answers
32k views

How to write hidden notes in a LaTeX file?

How can I write notes in a LaTeX file, that don't appear in the PDF file?
9
votes
1answer
2k views

Replacing a substring

I've got a string like this: aXYbXYc, and need to replace the XY substring with a right arrow: a $\to$ b $\to$ c. Is there any function (also provided by external packages) to help me do that?
7
votes
4answers
3k views

How to fit text in a box of given size?

Say I want to typeset small piece of text as a logo/motto/slogan or whatever. The text is not much longer than "Lorem Ipsum Dolor". I want this to fit tightly in a box of certain size (e.g. 7x2cm). ...
23
votes
7answers
1k views

How to split text into characters

I would like to define a function which splits an input text into its constituent letters, so I can process each letter individually (the background to this question is that I would like to put each ...
11
votes
3answers
703 views

Extracting the contents of text in a specified environment into a new file

Imagine I have a complete latex file and I want to extract only the text that appears in a specified environment (i.e., within a custom hypothesis environment) For example: \begin{document} ... Lots ...