Search found 5 matches

by hyc_n
Wed Apr 30, 2014 5:57 am
Forum: Page Layout
Topic: two-column with margins on the same (left) side
Replies: 0
Views: 2404

two-column with margins on the same (left) side

I am making a two-column document using multicol package.
I need a vertical rule to the left of each column.
I have a macro, say \foo, which appears in the text. When a \foo appears, a counter is increased and printed on the margin (i.e. on the left of the vertical rule to the left of that line).
It ...
by hyc_n
Tue Oct 16, 2012 5:51 am
Forum: Text Formatting
Topic: String Manipulations
Replies: 3
Views: 3517

String Manipulations

When recalled, the counter should print its value at storing, not its value at recalling.


\remove
\newcounter{test}
\setcounter{test}{12}
\store{\roman{test}}
\recall
\setcounter{test}{16}
\recall

The result is "xii xvi", but I prefer "xii xii".

\remove
\begin{enumerate}
\item Thank you ...
by hyc_n
Mon Oct 15, 2012 6:50 pm
Forum: Text Formatting
Topic: String Manipulations
Replies: 3
Views: 3517

String Manipulations

I don't know how to write three commands:

to store append some string to some string S.
to recall that S.
to remove S (reset it to an empty string)
An example will be like this.


I want to \store{this} and \store{that},
to \recall and \store{some more} too. \recall!
After \remove, nothing is ...
by hyc_n
Thu Aug 30, 2012 11:10 am
Forum: Text Formatting
Topic: How can I forbid something to be put at the end of a line?
Replies: 2
Views: 2717

How can I forbid something to be put at the end of a line?

I am sorry for my not giving a minimal example.

\documentclass{article}
\newcommand{\rrr}{{\sffamily\tiny\raisebox{0.2pc}{\=r}}}
\usepackage{CJKutf8}
\begin{document}
\begin{CJK*}{UTF8}{song}
一二三四五六七八九十一二三四五六七八九十一二三四五六七八九十一二\rrr三四五六七八九十\par
one two three four five six seven eight nine ten one two ...
by hyc_n
Thu Aug 30, 2012 9:58 am
Forum: Text Formatting
Topic: How can I forbid something to be put at the end of a line?
Replies: 2
Views: 2717

How can I forbid something to be put at the end of a line?

I wrote several lines like
\newcommand{\aaa}{{\bfseries\tiny a}}
\newcommand{\bbb}{{\bfseries\large b}}
which just print a number/letter formatted in some fixed way.
These number/letter will appear throughout the text very often.

But, sometimes the number/letter appear at the end of a line, the ...