The tag has no wiki summary.

learn more… | top users | synonyms

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.
3
votes
2answers
250 views

Force paragraph to stay with previous

I am using knitr to create inline sparkline-esque graphics. However, when knitr inserts images that it generates with R, it add a blank line, which forces LaTeX to make a new paragraph. That is, if I ...
16
votes
4answers
657 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 ...
2
votes
1answer
184 views

how to manipulate font properties of text above overbracket

How can I change the font properties (e.g. size, style, spacing etc) of text above a overbracket in an equation? For example: ...
5
votes
2answers
526 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 ...
6
votes
1answer
272 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 ...
1
vote
2answers
1k views

How do I write ^ as text in LaTeX? [duplicate]

Possible Duplicate: How to look up a symbol? How to typset the symbol “^” (caret/circumflex) I would like to produce ^^ as text in my document. The symbol is refered to as 94 (0x5E) = ^ ...
12
votes
2answers
784 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 ...
6
votes
2answers
533 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} ...
7
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 ...
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 ...
21
votes
8answers
518 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: ...
1
vote
2answers
1k views

How can I change the font size of a fraction in an index?

I have, as part of an equation, the object a^{5} \left(\frac{b}{c}\right)^{\frac{2}{3}} The problem is that the 2 and 3 are very small (compared to the 5) and I would like all sub/superscripts to ...
13
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 ...
8
votes
2answers
388 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 ...
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 ...
13
votes
3answers
756 views

Stretching text vertically

Is it possible to stretch text vertically? Like this:
4
votes
1answer
251 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 ...
1
vote
1answer
83 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
567 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 ...
7
votes
1answer
555 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 ...
9
votes
5answers
5k 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
1k 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
159 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
283 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
9k 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 ...
10
votes
3answers
3k 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
345 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
469 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
1answer
3k 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 ...
7
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
789 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
977 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
665 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
271 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
306 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
672 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
171 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
743 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
182 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
389 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
1k 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
778 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 ...
47
votes
5answers
46k 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?
10
votes
1answer
3k 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
4k 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 ...
14
votes
3answers
843 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 ...