The tag has no wiki summary.

learn more… | top users | synonyms

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?
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 ...
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 ...
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?
20
votes
8answers
411 views

Automatic species names in latex / command that does something differently the second time it is run

In academic publications it is a rule of thumb that the first time you give a species name, you write the genus and species in full...and the second time you can abbreviate the genus. First time: ...
15
votes
4answers
551 views

Selectively suppress generation of typeset output

Is it possible put TeX into a "mute" mode in which all typesetting is suppressed? \documentclass{article} \pagestyle{empty} \begin{document} \suppress This text will not be seen in the generated ...
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 ...
12
votes
3answers
521 views

Stretching text vertically

Is it possible to stretch text vertically? Like this:
12
votes
2answers
651 views

Is there is a package so you can add text with visual effects like “WordArt” from “Word”

I am elaborating a business card style for LaTeX but I found out that even if I have the style and margin for the cards I can not make it look "pretty" like other text editors without overusing ...
12
votes
1answer
2k views

How can I add a subtitle to a section title?

I'd like to do this for some of my sections but not all. I'd also like to maintain the current spacing; for example, if the vspacing is 1cm from section title to body text (at 100% zoom), then I'd ...
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 ...
11
votes
3answers
1k views

Increasing the text size in tufte documents

I have typeset my lecture notes using the tufte latex style. The notes are around 60 pages long. This year I have a few students who require notes where the text size is larger than the default - I'd ...
11
votes
3answers
141 views

Text across two pages

I am making a small book and I want to put a phrase in both pages like the picture above, I want to keep the chapter title and page numbers. Could you give me a hand on this?
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 ...
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 ...
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 ...
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?
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?
8
votes
3answers
293 views

Viva preparation document

In one of the doctoral thesis howto books (Rugg and Petrie, I think) the advice given is to prepare a document that summarises one page of your thesis per line of page. I'm interested in working with ...
8
votes
2answers
244 views

Multi-line curved text along vertical

I found this rendering from here on this site but with no explanation or working example to go with it. How do I do this? I'm pretty familiar with TikZ but I'm having trouble finding text that is ...
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). ...
7
votes
2answers
356 views

How to illustrate a drawing with text and two decorations

How can I create a drawing like this: The stuff in red are only explications (with "middle" I meant middle of the drawing representing the spiral) and should not be drawn. Tikz would be best, since ...
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 ...
7
votes
1answer
74 views

Transformed text as from a specific viewport

Is there a possibility to shear (any) LaTeX text or the output of a mathematical formula as it would be obtained as a result from looking at a different angle/viewport? I do not mean mere rotating of ...
7
votes
1answer
584 views

indexed letters inside circles

I'm currently using this code \raisebox{.5pt}{\textcircled{\raisebox{-.9pt} {f}}} to get I'm trying to index the function f inside the box, with say $f_{n}$ but \textcircled doesn't seem to ...
7
votes
1answer
52 views

How can one make border of text for a figure?

I want to take text and wrap it around as the border of a figure. That is, text on the top, wrapping to sideways text running down the right, wrapping to upside down text on the bottom, wrapping to ...
7
votes
1answer
63 views

Typeset just the first letter in a group

How can I typeset (print) just the first letter of a group of text? For instance, how does biblatex or bibtex determine the first initials of a name? MWE to get started: \documentclass[]{article} ...
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 ...
6
votes
2answers
448 views

Drawing a venn diagram with two nodes using Tikz?

How do I create a Venn Diagram with entities no larger than below, but with text scaled to fit; and circles in alignment horizontally? \documentclass[a4paper, 14pt]{article} \usepackage{tikz} ...
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 ...
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 ...
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 ...
6
votes
1answer
111 views

Automatically divide text between two tikz paths

I make a custom shape and I need to put a text inside it. But problem is that my text didn't fit the length of decorated path. So, I need a way to automatically divide text between two or three paths. ...
6
votes
1answer
66 views

About mirroring a piece of text

I would like to produce a mirrored version of the Lorem ipsum text. How can I do this? If I use \reflectbox or \scalebox, everything ends up in a single line of text. This is my code: ...
6
votes
1answer
71 views

Change direction of a textbox, taking up space from above instead from below

I am designing a custom theme for my LaTeX presentations. This is my title page: Now when I have a longer title, this happens: Here's my code (according to this post): \defbeamertemplate*{title ...
6
votes
1answer
243 views

\expandafter usage and plain TeX programming

Hello everybody out there using TeX, Actually, I wanted to write a LaTeX macro in plain TeX in order to include source code examples with individual modifications like stripping off comments and the ...
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 ...
5
votes
2answers
1k views

Move TikZ cloud in a better position using beamer

I am trying to manipulate the exact position of a TikZ cloud but I am not sure if I'm doing any effort at all. As you see in the aforementioned picture the space between items is not beautiful. So ...
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
75 views

how to do multiple string replacements?

i want to escape URL paths to obtain the percent-escaping that is also applied e.g. by browsers; for this i tried to do the following (outcommented lines are meant to show what i'm aiming at here): ...
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
1answer
1k views

How to autowrap text in latex?

i m writing one paragraph in which i need to wrap text in a paragraph. How can i wrap text "hemorrahagic" to next line or use hyphen two split it into multiline.
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 ...
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 ...
5
votes
2answers
395 views

Extracting Text Only from a Thesis [duplicate]

The question Extracting the contents of text in a specified environment into a new file (and answers therein) involve using the extract package to produce a LaTeX file that contains all the text ...
4
votes
1answer
1k views

\text{} in a fraction but spread over two lines

Rather than try to describe in words or by way of a MWE, I have uploaded a picture of the desired result. I know how to create all the components (e.g. \frac{}{} \text{}, ^{}) of this fraction, except ...
4
votes
1answer
3k views

Changing background color of text in Latex

How can I make change a text background in LaTeX? For example using Latex code \textsc{Extra Curricular Achievements}\\ I get However, I want the background of this heading to be changed so that ...
4
votes
3answers
118 views

Two instances of the same text in the document

I am writing problems-solutions book. I have decided that problems and solutions shall be separated; first half of the book having problems and the second half solutions. But I need the text of the ...
4
votes
2answers
88 views

How to put some comment-like text in a formula?

I have the following formula: $$\bot \dashv\vdash \bot \land A /* not derivable */$$ But the phrase /* not derivable */ doesn't show correctly. For example there is space between / and *, but no ...
4
votes
1answer
235 views

Text not covering full linewidth

I am making a project report for college. In the instructions regarding report,it is written that "The matter contained in the report should be typed in MS word (1.5 spacing) Times New Roman,12 pt ...