about using TeX's programming capabilities to modify input text.

learn more… | top users | synonyms

3
votes
0answers
13 views

Why does \IEEEPARstart have conflict with \textcolor?

MWE: \documentclass[journal,twoside]{IEEEtran} \usepackage{color} \usepackage{amsmath} \begin{document} \textcolor{red}{ \IEEEPARstart{L}orem ipsum dolor sit amet, consectetur adipiscing elit. ...
4
votes
5answers
102 views

How do I raise or lower the position of text?

Using minipage, I've split my header into \begin{minipage}{0.4\textwidth} \textsc{ \Huge{\textbf{MyNameHere}} }\\ \end{minipage} \begin{minipage}{0.6\textwidth} \begin{flushright} MyAddress\\ ...
1
vote
1answer
21 views

Line and text below

I'm looking a way to do yield the following result in LaTeX. As you can see, (action) is centered in the first clause of the text, and (result) is also centered in the second clause of the text.
6
votes
1answer
89 views

Adding straight quote marks to \texttt

Problem: Inline text gets curled quote marks and I would like to format these automatically to be straight ones instead. Minimal Working Example (MWE): \documentclass{article} \usepackage{xcolor} ...
1
vote
1answer
71 views

indentation as displayed in the editor

Each time I tab, the entire paragraph is indented right, in the Tex editor (TeXstudio), instead of just the start of the paragraph. How do I set the options of TeXstudio to not indent the whole ...
8
votes
4answers
366 views

How do I get text above and below text?

How would I do {text}_{i=1}^{i=n} with the written exactly above and below the text? Hope you can help!
1
vote
0answers
26 views

Changing the font size of rotatebox

How can we change the font size of the text appearing in the rotatebox? For example: \rotatebox{90}{test text} I would like to change the size of "test text".
2
votes
2answers
45 views

How to make equation text size to be normal

The letters in my equation are shrinking and I'm trying to revert that: I'd like them to appear as follows: If you notice you can see that the parenthesis' size on second image vary like 3 times ...
12
votes
7answers
865 views

Remove leading zeroes from an integer

In the documentclass I am writing, the user will input an integer such as \lessonnumber as an integer with possibly a number of leading zeroes, e.g. 4 as 04. At some places in the document I will need ...
0
votes
1answer
81 views

Italic or font change for a whole section

I would like to change the appearance of a whole section in a text with math content. I have for instance a half page with several equations in it which I would like to be differentiated from the rest ...
4
votes
1answer
124 views

In LaTeX, what is the most efficient way to search for an optional token in given input?

My question is inspired by this comment by Joseph Wright. Let's say we have input strings with varying character combinations, such as: ...
1
vote
0answers
24 views

My text in \maketitle is keeping long distance with the \resheading

when i am writing in maketitle or am making an itemize it is coming after keeping some distance as seen in the screen-shot. \resheading{KEY AREAS:} \maketitle{July 2007 to till date: (Project ...
0
votes
0answers
33 views

Beamer: control thickness of roman text in math environment (and vice versa)

Problem: I've written the following expression with beamer \begin{exe} \ex $\llbracket \phi\wedge\psi \rrbracket^{\mathcal{M},w,g} = \textsc{alt} \left\{ \alpha\in W ...
0
votes
0answers
55 views

textblock* on every page

I have following: \begin{textblock*}{15mm}(191mm,20mm) \begin{spacing}{6.2}\noindent\thin\color{black} {\fontsize{50}{60}\selectfont M\\ Y\\ T\\ E\\ ...
3
votes
2answers
145 views

How to tie TeX macros to text or another macro?

Is it possible to tie a TeX macro to some text (e.g. the next paragraph) or another macro? For your information, here is a more specific description of the problem: I am using a set-up macro ...
0
votes
0answers
28 views

Said number in latex [duplicate]

it is very easy to make receipt money form in excel. For example : $34,125 (Said: Thirty Four Thousand One Hundred and Twenty Five Dollar) Said Number made automatically by macro excel. Said ...
3
votes
0answers
121 views

How to add/check missing punctuation marks (itemize/enumerate) automatically?

(An experiment) I'd like to present you one of the possible tasks (to be automated) I solve in my daily work: adding missing punctuation marks in the itemize and enumerate environments. I polish ...
0
votes
0answers
38 views

Multiple file editing with by changing one file only?

Note: question is not formatted properly. If better suggestions please let me know. I have a resume made in Latex. From master copy containing all the details , 3 children copy relevant to specific ...
1
vote
1answer
32 views

Problem with text position after inserted figure

I have following MWE: \documentclass[12pt,a4paper]{article} \usepackage[utf8]{inputenc} \usepackage[color=red,opacity=0.1,contents={}]{background} \usepackage{hyperref} \usepackage{indentfirst} ...
2
votes
1answer
89 views

Fill line with asterisks [duplicate]

I want to fill a line with asterisks just like as with \cdots or \ldots that can be used in tables, \leaders solution doesn't work well. I'm working in a fixed columns width table, where at the end ...
2
votes
1answer
169 views

Properly Positioning text in beamer using textpos

I am using textpos to control the position of text in a beamer frame. What I want to do, is to place some text on top of an image. I am using the package in absolute mode and I want to place the text ...
3
votes
2answers
87 views

Define command that either does \kill or \textcolor

I have some paragraphs in my thesis, that will stay in there until just before it is finished. They should be marked as non-important to my supervisor. Then I'd like to remove those paragraphs all at ...
6
votes
1answer
162 views

Convert all all-caps words to small caps

I'd like to turn all all-uppercase words, acronyms etc. into small caps, preferably automatically on the fly and without changing the source files. The ideal solution would also allow me to block some ...
7
votes
3answers
296 views

Automatic apostrophes for quotation marks

There are some other questions on this side addressing related issues, but I haven't found any which cover exactly my issue. I have a text (converted from XML) which uses the apostrophe ' with three ...
5
votes
2answers
156 views

Move textregistered symbol more towards the top right

I have this as my code: \Huge\bfseries Cambridge IGCSE\textsuperscript{\small{\textregistered}} And this shows: To make it more aesthetically pleasing, how do I move the text registered symbol a ...
2
votes
1answer
66 views

Move text / numbers to a new line

Let's say you have a few pages worth of text then numbers, ie name address phone number. Example : Name address 0123 4444 name address 0987 6754 name address 5674 5643 etc How can one create a rule ...
0
votes
0answers
50 views

Using lots of symbols in general text [duplicate]

I am trying to reference in my report however as the referencing guide suggested includes lots of symbols ie ( :,;,<,>,/,\,[,],(,),_,~,) when i press play in latex i get the error "missing $" as ...
1
vote
1answer
55 views

Placing the text under a line in a multiline form

I am typing a form like the following: I want to make a command \newcommand\myform[1]{ *** #1 ***} that will produce the filled-in form with the argument substituted into it. For example, the ...
3
votes
2answers
117 views

A circular version of \underbrace or \widehat

I'm new to LaTeX and am searching for a function that acts like \underbrace or \widehat but is circular (I don't want the pointed middle part). Does such a function exist? I tried using Detexify but I ...
11
votes
1answer
139 views

Why spaces are ignored even in textual arguments within \ExplSyntaxOn… \ExplSyntaxOff?

I've seen workarounds for having the spaces recognized within \ExplSyntaxOn... \ExplSyntaxOff. But I wonder why spaces are unrecognized even for (LaTeX3) macros arguments undoubtedly expecting text, ...
9
votes
4answers
460 views

truncate text from left to right

I simply need to truncate a text string, which is just a sequence of characters without whitespace, therefore the linebreak won't work. I just need to decide the length of the string in centimeter, ...
1
vote
2answers
79 views

Latex equivalent of DECODE (check text and assign number) [closed]

I've four probable sentences in CSV file. Ex: sentence 1 here , one more sentence, one more sentence added, last sentence. In Latex; I want to print 1 if "sentence 1 here" is present. Something like ...
6
votes
2answers
198 views

Is it possible to add text underneath a part's title?

In a LaTeX report I'm working on, I have used \part{title of part} to organise the chapters into parts. This gives me distinct pages for each \part specified which is what I want. But if I try to add ...
12
votes
3answers
2k views

Difference between *.tex and *.txt Files

Is there any difference between the two file-formats? Do I see all the data, when I open a .tex file using a Standard Text-Editor in Windows? Do .tex files have some kind of meta-data or disguised ...
5
votes
3answers
172 views

align with text

I have some equations into the aligning environment and i want below them to write something. But in the same time also want those to be aligned. In particular Imagine that I want or i could do this ...
1
vote
1answer
77 views

Filling a page with figures

I have a text and then a bunch of figures. I would like to fill A page with all the figures so the text would continue AFTER this page. In other words I would need something like this : Page 1 : text ...
2
votes
1answer
53 views

One Command to Rule Both Colored Text and Invisible Text

I have to send a paper to two different people. For the first person, I have a bunch of questions that I would like to add throughout the paper and in color. For the second person I don't want the ...
5
votes
2answers
178 views

Overlapping text or… text above text!

I was trying to do this exercises 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 was trying to find an ...
3
votes
2answers
85 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
54 views

How to make sure numbers is in upright [closed]

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
63 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 ...
6
votes
2answers
375 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
198 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
158 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 ...
5
votes
2answers
108 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
206 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. ...
27
votes
3answers
600 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
122 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
2k 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
109 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} ...