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

learn more… | top users | synonyms

1
vote
0answers
21 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
24 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 ...
9
votes
2answers
10k 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 ...
0
votes
0answers
39 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
135 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
56 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
34 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 ...
2
votes
1answer
71 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 ...
1
vote
1answer
25 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
85 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
76 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 ...
8
votes
1answer
3k 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 ...
10
votes
2answers
1k 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 ...
59
votes
5answers
67k 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?
5
votes
1answer
125 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
266 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
99 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
57 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
49 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 ...
6
votes
2answers
310 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 ...
3
votes
2answers
92 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 ...
1
vote
2answers
72 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 ...
8
votes
4answers
381 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, ...
11
votes
1answer
127 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, ...
6
votes
2answers
133 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
1k 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
162 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
64 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
42 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
161 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 ...
27
votes
3answers
546 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 ...
3
votes
2answers
83 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
57 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 ...
1
vote
0answers
53 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}.
4
votes
1answer
191 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
144 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
92 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 ...
8
votes
1answer
266 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 ...
7
votes
1answer
185 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. ...
7
votes
1answer
109 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
1k 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
102 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} ...
23
votes
8answers
628 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
665 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
98 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
47 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
156 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 ...
3
votes
1answer
215 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 ...