Questions tagged [text-manipulation]

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

Filter by
Sorted by
Tagged with
0
votes
1answer
38 views

How to use displaystyle for all maths expressions in text? [duplicate]

I would like to display all inline maths expressions in displaystyle, but without typing \displaystyle{...} everytime I insert a math expression into a block of text. How can we do that at the ...
2
votes
1answer
57 views

Blotting Out the Curve Used to Bend Text in a Tikzpicture

This is a follow-up to a question I posted yesterday: How to Bend Words to Conform to the Arching Pages of an Open Book Image After receiving no answer to the above question, I have since been able to ...
7
votes
4answers
906 views

Simple implementation of the abs function by getting rid of or by consuming the “-”?

I wish to build a (simple) implementation of abs. I tried \FPabs but I get a lot of zeros after the decimal point. I could get rid of them with the FP round function, but I don't know the number of ...
1
vote
1answer
61 views

Outline text in plain XeTeX?

I use plain XeTeX. I've been asked to include a shamrock character in a typeset document (which I've found at Unicode 2618), but only in outline. The examples in the excellent PST-Text package (page ...
0
votes
0answers
29 views

text not fitting to column width

I have used a template for a 4 page double column format. It works for all the other pages up to the point shown on the screenshot (end of page 3 to page 4) , and I have no idea what has triggered ...
2
votes
1answer
67 views

How to get a shorter hyphen in text mode?

I'm creating a title page with large fonts, in French, and I really hate the usual hyphen for such a big title. So I'm looking for a shorter hyphen, something elegant and simple. Here's a MWE ...
0
votes
0answers
40 views

How to hide the labels of the formulas in the final output pdf?

I want to hide the labels of the math formulas and equations in the output pdf, what is related command to do that? (see the picture) The followings are the packages I use in my \documentclass[12pt]{...
0
votes
0answers
24 views

Textboxes on my PDF don't show up when loaded into LaTeX

I have used a PDF reader to add textboxes to a PDF image. When I save the changes, one can open the PDF and see that there are now textboxes on it, but if I try to upload the PDF into an article ...
5
votes
3answers
639 views

Why does \ifx consider \MakeUppercase{1} and \MakeLowercase{1} different?

In this minimal example, an uppercase number is different of the same lowercase number. Why? \documentclass{memoir} \begin{document} \def\testone{\MakeUppercase{1}} \def\testtwo{\MakeLowercase{1}} \...
0
votes
0answers
6 views

Altering text size for 2 pages

Most of my text is lined up using 1 text size. I made new text though and I have to combine it with the other text. One is using \usepackage[utf-8]{ctex} and the other is default texmaker size just ...
1
vote
0answers
35 views

If I am only printing text (characters, bullets, indentation), is there an advantage to using LaTeX?

I need to create a PDF with entries from a database (using C# .NET if it matters, but C# is not required). The final document does have to be physically printed, but the printer does not get LaTeX, ...
2
votes
2answers
111 views

Custom text alignment

Is there an option to define custom alignment for text? For example, to make your own \begin{flushright}...\end{flushright}? In particular, I want to have an alignment (for text) that it is centred ...
1
vote
1answer
42 views

text mining and cross referencing

I want to make an adjacency matrix with citations. I want to conduct make an index of 130 words and search 130 papers against the 130 words. Manually this is a long process. But I want to automate ...
1
vote
1answer
43 views

Character replacement does not work correctly

I am replacing a character. It works fine if I give that character as input directly. But when that character is extracted from a string, and then fed in to command for the reassignment it does not ...
0
votes
2answers
98 views

Writing text side-by-side [closed]

Can someone please help me figure out how to write two columns of text side by side for just a short region of a page in LaTeX? As a MWE please see the attached pic. Edit : I just want to write two ...
3
votes
5answers
148 views

separating characters in a string

I want to write a macro that will separate the characters in a given string with some condition. If I have a string abcdef<ghi>jkl<mn>opqrs I want to access each character as a string for ...
1
vote
1answer
41 views

how to shift text right in a tabular data

This is code in a simple document I am writing abbreviations. \begin{tabular}{l l} \textbf{VM} & Virtual Machine\\ \textbf{AWS} & Amazon Web Services\\ \textbf{GCP} &...
0
votes
1answer
35 views

How to change the size of all types of text?

I am fairly new to latex, but when I started writing my document, I noticed that the text was very small (from the normal text I used in paragraphs to the text I used to name different sections). My ...
4
votes
4answers
203 views

How to write this kind of colour text in LaTeX?

I need to add following text to my latex document. currently I created some image and add it to document. I need to know some simple way to adding it as text , to my latest project. An additional ...
0
votes
1answer
73 views

Text running through the line

I am quite not sure how to create something like this: text across a line border on latex. Edit1: \begin{tcolorbox}[enhanced,title=My title, attach boxed title to top center={yshift*=-3mm}, boxed ...
2
votes
1answer
41 views

Text manipulation with xstring failing: \@xs@StrRemoveBraces@@

Consider the following document: \documentclass{article} \usepackage{xstring} \makeatletter \newcommand{\mycommand@firstchar}[1]{% \StrRemoveBraces{#1}[\FirstChar]% \StrChar{\FirstChar}{1}[\...
1
vote
2answers
63 views

\reflectbox in \newenvironment

I have the following problem with the \reflectbox{} command used in a \newenvironment{}: It doesn't do anything. Here's my code: \documentclass[12pt, a4paper]{article} \usepackage[utf8]{inputenc} \...
0
votes
2answers
132 views

Wrap text in table

I'm trying to convert my CV (originally assembled in word) into a Latex file, largely as a learning exercise. I just wondered if someone could help me wrap text as in my current version certain pieces ...
1
vote
1answer
63 views

Help drawing as text a number from a formula (For instance [ 1-\thepage)*70+\i ] )

Googling I found that it is common that \lineno does not work properly around displaymath with the ifacconf.cls template. I am trying to improve a workaround I found for peer review reference. ...
1
vote
0answers
32 views

Two Flowing Frames per Page [closed]

I want to write a document where the history, geography, culture of a certain place is the main text. Together with that, I want to present a timeline of events but, rather than a separated topic or ...
1
vote
0answers
128 views

Alignment inside in-line $$ math environment [duplicate]

I would like to be able to use (equation) alignment inside a simple in-line $...$ environment. Of course, normally nobody does this, when this is properly done with the standalone equation ...
5
votes
2answers
197 views

How can i have text between brackets in equation with respect to some criterion?

I try to have something close to that Here is my try, \begin{equation} \begin{array}{cccc} \partial_t C & + \partial_x u C + \partial_x v C = & D_x \partial_{xx} C + D_y \partial_{yy} C + &...
0
votes
0answers
36 views

How can I put text in the left margin using enumerate

I'd like to use\begin{enumerate} to create a list of numbered problems, but I want to place text to left of the numeral, in the margin, like this: Any suggestions?
1
vote
1answer
4k views

How to add a superscript in text mode

I'm writing about C* algebras and I'm trying to write *-strings efficiently. I managed to define C* like this: \newcommand{\Cstar}{C\textsuperscript{*}} While I have to invoke it as \Cstar{} to ...
1
vote
1answer
226 views

A way to use textbf and textit at the same time with one command

Hello I have to make a document where I use a lot \textbf and \textit at the same time, so I tried to create a new command where it use both at the same time, but it gave me an error and I don't know ...
0
votes
1answer
526 views

\rightsquigarrow with the text above and below it [duplicate]

is it possible to write a text above and below the \rightsquigarrow? I am trying \xrightsquigarrow[\text{b}]{\text{a}}, but it is not working.
4
votes
1answer
739 views

How to add multi-line text below a node in a tree in forest

I want to make a tree which has bulleted lists centered below the child nodes, like so: I've searched on TeX SE and found questions which describe putting labels below nodes, but it doesn't quite ...
6
votes
4answers
791 views

Make blocks of text invisible only if said so

Is there any command which allows me to make some blocks of text invisible only if initially I said so? I.e., I would like to mark some lines throughout the text that would only appear in the ...
0
votes
2answers
268 views

problem with text formatting \ itemize

I looked for a command to improve the equation item and I met this one. \usepackage{amsmath} newcommand{\itemEq}[1]{% \begingroup% \setlength{\abovedisplayskip}{0pt}% \...
3
votes
1answer
92 views

Make text fall of a line

As a joke in a songbook I'm editing I want to make a phrase "fall of the line", letter by letter. I do remember a long time ago to have seen something like this in WikiBooks but can't find it again. ...
0
votes
1answer
1k views

Disable word break

How can I disable word breaks in the whole document? I don't want any of my words broken and hyphenated across 2 lines. I have tried to use the package: \usepackage[none]{hyphenat} But then my ...
3
votes
1answer
194 views

How to emulate this page style from the comic book Watchmen?

Basically, I want to create a page so that it looks like a "photograph" of a piece of paper (with text) over another piece of paper (also with text). Is this possible in LaTeX? If yes how? I have no ...
0
votes
2answers
121 views

problems with margins in textual minipages

I'm writing a restaurant menu and i have problems with the left margins of this page, in particular in the paragraph 'Wine'. If I omit \vfill, the code overlaps the two paragraphs but it puts them ...
0
votes
1answer
582 views

Placing a Text over another Text in Beamer

How can I place a text on top of another text in beamer? I want something like this but over text while the original text becomes transparent.
0
votes
1answer
242 views

A Single Command for Combining Text and Math?

I'm trying to add units to some quantities for my physics homework. Here's what I want: Normal Text Math Commands Allowed All Bold One command to accomplish the above For example, if I want to write ...
5
votes
2answers
473 views

Truncating multi-line text

We can use the truncate package to truncate a piece of text so that it fits e.g. in a 5cm wide box. However, the package can only handle one line of text. What if I have got a (possibly long) text ...
2
votes
1answer
163 views

Top & middle left alignment of text inside cell

How make top left alignment (yellow rectangle) and middle left alignment (red rectangle) of text inside cell? I've tried a lot different options, I think alignment should be specified directly in ...
2
votes
1answer
109 views

Fontsize for text vs. math

Disclaimer: I am new to Latex, I apologize for the lack of specific and correct vocabulary to describe my question. I am building an equation sheet and have a question about font sizes. I would ...
5
votes
2answers
2k views

Top-Align Text in TikZ Node

I want the heading ("Meldebogen", "Anklage", "Beweisaufnahme", "Urteil") all on the same vertical height regardless of the content. I figured that simply top-aligning the text in every node would do ...
2
votes
1answer
86 views

Latex reformat text structure

Say I have a file of abbreivations.txt &Estimated &Time of &Arrival &North, &East, &West, &South &Special &Weapons &And &Tactics &W&ireless &F&...
1
vote
0answers
51 views

Software to check grammatical errors in Latex text [duplicate]

Is there any software, like Grammarly, that enables one to check the grammar in the text while using latex. The problem with using Grammarly is that with formulas and mathematical notation, it becomes ...
0
votes
1answer
96 views

How to selectively delete inner and outer parentheses simultaneously?

For example I want to retain only the content inside \text so that \[ \text{v} = \text{w} \] becomes \[ v = w \] How does one do this if there are hundreds of instances of \text{..} and I want ...
0
votes
1answer
212 views

Centre heading in 2 by 2 table

In my 2 by 2 table, I would like to position the headings 'Ashley' and Matt' so they are always centred with respect to the text adjacent columns. I have included a picture of the ideal position (red ...
1
vote
1answer
197 views

Tables containing lots of text

I would like to create a table for a large amount of text, following the style shown in the picture 1 (below). I have attempted to do this using tabularx but with little success. I have tried to ...
0
votes
2answers
153 views

latex text manipulation of \ref ouput

For some reason I need to manipulate the output of the \ref command to match the patter of four digits without dots. For example: \title{A Very Simple \LaTeXe{} Template} \documentclass[12pt]{article}...

1
2 3 4 5