Skip to main content
Commonmark migration
Source Link

Here is a version adapted from egreg's solution at How to split text into characters:

enter image description here

##Code:

Code:

\documentclass{article}
\usepackage{xparse} 

\ExplSyntaxOn
\NewDocumentCommand{\stringprocess}{ m m }
 {
  \egreg_string_process:nn { #1 } { #2 }
 }
\cs_new_protected:Npn \egreg_string_process:nn #1 #2
 {
  \tl_map_inline:nn { #2 } { #1 { ##1 } }
 }
\ExplSyntaxOff

\newcommand{\rotatechar}[1]{\rotatebox{90}{#1}}

\begin{document}
\stringprocess{\rotatechar}{Roated}
\end{document}

Here is a version adapted from egreg's solution at How to split text into characters:

enter image description here

##Code:

\documentclass{article}
\usepackage{xparse} 

\ExplSyntaxOn
\NewDocumentCommand{\stringprocess}{ m m }
 {
  \egreg_string_process:nn { #1 } { #2 }
 }
\cs_new_protected:Npn \egreg_string_process:nn #1 #2
 {
  \tl_map_inline:nn { #2 } { #1 { ##1 } }
 }
\ExplSyntaxOff

\newcommand{\rotatechar}[1]{\rotatebox{90}{#1}}

\begin{document}
\stringprocess{\rotatechar}{Roated}
\end{document}

Here is a version adapted from egreg's solution at How to split text into characters:

enter image description here

Code:

\documentclass{article}
\usepackage{xparse} 

\ExplSyntaxOn
\NewDocumentCommand{\stringprocess}{ m m }
 {
  \egreg_string_process:nn { #1 } { #2 }
 }
\cs_new_protected:Npn \egreg_string_process:nn #1 #2
 {
  \tl_map_inline:nn { #2 } { #1 { ##1 } }
 }
\ExplSyntaxOff

\newcommand{\rotatechar}[1]{\rotatebox{90}{#1}}

\begin{document}
\stringprocess{\rotatechar}{Roated}
\end{document}
replaced http://tex.stackexchange.com/ with https://tex.stackexchange.com/
Source Link

Here is a version adapted from egreg's solution at How to split text into charactersHow to split text into characters:

enter image description here

##Code:

\documentclass{article}
\usepackage{xparse} 

\ExplSyntaxOn
\NewDocumentCommand{\stringprocess}{ m m }
 {
  \egreg_string_process:nn { #1 } { #2 }
 }
\cs_new_protected:Npn \egreg_string_process:nn #1 #2
 {
  \tl_map_inline:nn { #2 } { #1 { ##1 } }
 }
\ExplSyntaxOff

\newcommand{\rotatechar}[1]{\rotatebox{90}{#1}}

\begin{document}
\stringprocess{\rotatechar}{Roated}
\end{document}

Here is a version adapted from egreg's solution at How to split text into characters:

enter image description here

##Code:

\documentclass{article}
\usepackage{xparse} 

\ExplSyntaxOn
\NewDocumentCommand{\stringprocess}{ m m }
 {
  \egreg_string_process:nn { #1 } { #2 }
 }
\cs_new_protected:Npn \egreg_string_process:nn #1 #2
 {
  \tl_map_inline:nn { #2 } { #1 { ##1 } }
 }
\ExplSyntaxOff

\newcommand{\rotatechar}[1]{\rotatebox{90}{#1}}

\begin{document}
\stringprocess{\rotatechar}{Roated}
\end{document}

Here is a version adapted from egreg's solution at How to split text into characters:

enter image description here

##Code:

\documentclass{article}
\usepackage{xparse} 

\ExplSyntaxOn
\NewDocumentCommand{\stringprocess}{ m m }
 {
  \egreg_string_process:nn { #1 } { #2 }
 }
\cs_new_protected:Npn \egreg_string_process:nn #1 #2
 {
  \tl_map_inline:nn { #2 } { #1 { ##1 } }
 }
\ExplSyntaxOff

\newcommand{\rotatechar}[1]{\rotatebox{90}{#1}}

\begin{document}
\stringprocess{\rotatechar}{Roated}
\end{document}
Source Link
Peter Grill
  • 224.3k
  • 49
  • 585
  • 930

Here is a version adapted from egreg's solution at How to split text into characters:

enter image description here

##Code:

\documentclass{article}
\usepackage{xparse} 

\ExplSyntaxOn
\NewDocumentCommand{\stringprocess}{ m m }
 {
  \egreg_string_process:nn { #1 } { #2 }
 }
\cs_new_protected:Npn \egreg_string_process:nn #1 #2
 {
  \tl_map_inline:nn { #2 } { #1 { ##1 } }
 }
\ExplSyntaxOff

\newcommand{\rotatechar}[1]{\rotatebox{90}{#1}}

\begin{document}
\stringprocess{\rotatechar}{Roated}
\end{document}