The tag has no wiki summary.

learn more… | top users | synonyms

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

How can I force-move text?

My question is simple: how can I force-move text to the left or right (or even outside of the margins)? Some examples would be perfect.
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} ...
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: ...
1
vote
1answer
63 views

How to escape properly and output regex in latex?

Escaping regex is a heck of a work on LaTeX. How should I write in latex syntax such that I can output the following regexes: ^\(?\s?\w{1,5}\s*[):.]\s* and [\[\(].{1,}[\]\)] I've tried ...
7
votes
1answer
73 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 ...
1
vote
1answer
37 views

Pre-compiling with a different syntax [closed]

I am looking for a pre-compiler to introduce a customized syntax into LaTeX. Hope that an example will be worth a thousand words: I would like to compile this \thm The sum $ 1+2+3 is equal to ...
4
votes
2answers
77 views

How to use \left and \right inside text environment

I would like to know how to use the \left and \right options in the text environment. This is what I am trying to do: \left( when factorizing $e^{-2000t}$\right) As you can see, I am trying to make ...
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): ...
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?
3
votes
1answer
89 views

ConTeXt: Scale font for text based on maximum width

Background Looking to devise a scaling factor for two fonts such that the text, when added to the final document, fits on one line. Example In the images below, the two fonts are the first ...
3
votes
4answers
81 views

Text going to next line - how to keep on same line?

My cover for my thesis looks like this: The relevant MWE looks like this (I am using a template) \begin{minipage}{0.4\textwidth} \begin{flushleft} \large \emph{Author:}\\ John \textsc{Smith} % ...
0
votes
1answer
71 views

How to Format Text Automatically

In most scientific journals, articles that contain foreign words or sentences, should be written in italic. In this case, I wrote an article in Indonesian, while the foreign word or phrase is the ...
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 ...
1
vote
0answers
38 views

Indicating that the adjustwidth environment should be placed around text

I've been trying to work out a solution to this question about changing margins for body text without changing header/footer placement. Using the changepage package, I was able to work out the ...
4
votes
1answer
66 views

Justify hebrew text

I want to justify hebrew text but cannot do so , i have added centering for a heading. even when i remove centering the text is not justified \documentclass[hebrew]{article} ...
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. ...
3
votes
0answers
29 views

Arrange subfigure according to the text

I have a little issue. I have a figure made by 5 subifgures. They fill perfectly a page. The problem is that, when I have some lines of text before the image, the figure goes to the next page without ...
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 ...
4
votes
1answer
89 views

How to remove the first and last letter of a string

My example. Need from the string "$${{15}\over{4}}$$" get the string "${{15}\over{4}}$". \documentclass[14pt]{extarticle} \usepackage{xstring} \usepackage{amsmath} \def\f(#1){(#1)^2-5*(#1)+6} ...
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?
1
vote
1answer
68 views

Include TEXT from another file before generating PDF

I have a tex file which compiles fine and generates PDF without any problem. I need to include text (contents of a text file) from another .txt file at the end of tex file so that generated PDF would ...
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 ...
1
vote
0answers
30 views

Underbrace and text? [duplicate]

I want to use text under an equation. I am using the \underbrace_{text{}}. My point is that the text is quite long and I want to make it into two lines. For example: \begin{document} \begin{equation} ...
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 ...
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: ...
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 ...
3
votes
1answer
60 views

Use part of text stored in a variable

Is there a way to take only part of the text from a variable? My specific use case is with the envlab package: I want the \returnaddress command to omit the last two lines of the \fromaddress ...
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 ...
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 ...
2
votes
1answer
132 views

Shifting text section to the right

I have a large picture on the left side of the page and text referring to the picture on the right side. My problem is that the code as it is atm makes the text overlap the figure. It looks like this: ...
12
votes
3answers
521 views

Stretching text vertically

Is it possible to stretch text vertically? Like this:
3
votes
3answers
124 views

How to write ':' and '_' in equation? [closed]

\begin{equation} \label{eq:policy} \(\text{[DIP:10.1.0.17] $\rightarrow$ F $\rightarrow$ L}\) \end{equation} Gives me many errors like ! Missing $ inserted and Bad math environment delimiter. How do ...
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 ...
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 ...
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 ...
2
votes
2answers
167 views

Formula with text, good design?

I have the following text in my align environment, but it does not look good. So what should I change in order to get a better design/output? \documentclass[a4paper, 12pt, ...
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 ...
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 ...
2
votes
1answer
264 views

Text Alignment in paragraph box

I'm writing graphic application to generate latex tex. I'm making to generate text box with all it's features. Rotation alignment so on. I generated following cording but It was not Right aligned ...
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
183 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 ...
2
votes
1answer
143 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: ...
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 ...
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 ...
1
vote
2answers
953 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
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 ...
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} ...
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 ...
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?