The tag has no wiki summary.

learn more… | top users | synonyms

4
votes
2answers
81 views

Overlaping text or… text above text!

I'm a new user here! I was trying to do this excercises and I can't achieve exactly how they have to look: I'm not an english native speaker and in spanish there isn't that much documentation. I ...
3
votes
2answers
64 views

Printing just the first 20 characters of a text, adding \ldots

Is it possible to truncate the name of a chapter to - let's say - 20 characters and adding \ldots to it? So that it fits into the space of the tabs shown here?
1
vote
0answers
37 views

How to make sure numbers is in upright

How to define a function, say \makenumberup, when it apply to simple strings, it makes all numbers (not math!) in upright? So \makenumberup{Year 2010.} will equivalent to Year \textup{2010}.
1
vote
0answers
30 views

Parse markdown automatically (just emphasis) without luatex

I want to parse markdown emphasis automatically in XeLaTeX. This basically means converting asterisks either side of a word into the \emph{word} that LaTeX uses. I know that more complex Markdown ...
4
votes
1answer
82 views

Vectorized Text Effects/Transformations: Stretching & Expanding (WordArt)

I'd like to apply a text transformation similar to what the Inkscape extension 'Modify Path -> Envelope' does within LaTeX: In-source documentation of the envelope extension: This extension ...
4
votes
1answer
156 views

Is there any automatic way to detect hanging text on the right in LaTeX?

I wonder if there is any automatic approach to detect hanging text all throughout the 200-page thesis, mostly due to hyphenation issues. Consider the output below, there is like a subtle hanging text ...
4
votes
2answers
86 views

Horizontal space before block of text

Hi, I wanted to create column of text after bolded "Lorem Ipsum 1.", which has no specified linebreaks. This space before text (marked on image with red line and question marks) should have exact ...
4
votes
2answers
41 views

Replacing substrings by linebreaks

I have a LaTeX document with several authors that I enter like \author{First Author \& Second Author \& .... In some places in the document I want to print these authors with a linebreak ...
7
votes
1answer
109 views

Text doesn't fit the box

I created the following picture with Inkspace and made export to tikz. The problem is that the text doesn't fit the boxes. And the arrows should be colored with a gradient, but it's not so important. ...
24
votes
3answers
330 views

truncate text from right to left

I would like to have a command that truncates text like 'An example sentence.' to '...ple sentence.'. When called like this \truncateToLeft{4cm}{An example sentence.} I have no idea how to ...
7
votes
1answer
73 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
130 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.
8
votes
1answer
72 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} ...
1
vote
1answer
133 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
86 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
43 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 ...
5
votes
2answers
103 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 ...
7
votes
1answer
102 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 purpose I tried to do the following (out-commented lines are meant to show what I'm aiming ...
3
votes
1answer
121 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
123 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
75 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 ...
1
vote
0answers
40 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
79 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
153 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. ...
8
votes
3answers
304 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 ...
3
votes
0answers
31 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 ...
4
votes
1answer
112 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
148 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?
6
votes
1answer
87 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 ...
1
vote
1answer
73 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
280 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
33 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} ...
6
votes
1answer
4k 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
68 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: ...
3
votes
1answer
63 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 ...
4
votes
3answers
120 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 ...
7
votes
1answer
885 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 ...
3
votes
3answers
128 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 ...
4
votes
2answers
92 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
174 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, ...
2
votes
1answer
152 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: ...
2
votes
1answer
298 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
209 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 ...
15
votes
4answers
583 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
163 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
451 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
257 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
715 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 ...