2017-06-01 09:09:27 +02:00
|
|
|
# `\textcolor{}{}`
|
|
|
|
|
|
|
|
```
|
|
|
|
% pandoc -f latex -t native
|
|
|
|
Hello \textcolor{red}{World}
|
|
|
|
^D
|
2021-09-19 21:09:51 +02:00
|
|
|
[ Para
|
2021-09-29 06:17:53 +02:00
|
|
|
[ Str "Hello"
|
|
|
|
, Space
|
|
|
|
, Span
|
|
|
|
( "" , [] , [ ( "style" , "color: red" ) ] ) [ Str "World" ]
|
|
|
|
]
|
2021-09-19 21:09:51 +02:00
|
|
|
]
|
2017-06-01 09:09:27 +02:00
|
|
|
```
|
|
|
|
|
|
|
|
```
|
|
|
|
% pandoc -f latex -t native
|
|
|
|
\textcolor{red}{Hello} World
|
|
|
|
^D
|
2021-09-19 21:09:51 +02:00
|
|
|
[ Para
|
2021-09-29 06:17:53 +02:00
|
|
|
[ Span
|
|
|
|
( "" , [] , [ ( "style" , "color: red" ) ] ) [ Str "Hello" ]
|
|
|
|
, Space
|
|
|
|
, Str "World"
|
|
|
|
]
|
2021-09-19 21:09:51 +02:00
|
|
|
]
|
2017-06-01 09:09:27 +02:00
|
|
|
```
|
|
|
|
|
|
|
|
```
|
|
|
|
% pandoc -f latex -t native
|
|
|
|
Hello \textcolor{blue}{\textbf{World}}
|
|
|
|
^D
|
2021-09-19 21:09:51 +02:00
|
|
|
[ Para
|
2021-09-29 06:17:53 +02:00
|
|
|
[ Str "Hello"
|
|
|
|
, Space
|
|
|
|
, Span
|
|
|
|
( "" , [] , [ ( "style" , "color: blue" ) ] )
|
|
|
|
[ Strong [ Str "World" ] ]
|
|
|
|
]
|
2021-09-19 21:09:51 +02:00
|
|
|
]
|
2017-06-01 09:09:27 +02:00
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
% pandoc -f latex -t native
|
|
|
|
Hello \textcolor{blue}{\textbf{World}}.
|
|
|
|
^D
|
2021-09-19 21:09:51 +02:00
|
|
|
[ Para
|
2021-09-29 06:17:53 +02:00
|
|
|
[ Str "Hello"
|
|
|
|
, Space
|
|
|
|
, Span
|
|
|
|
( "" , [] , [ ( "style" , "color: blue" ) ] )
|
|
|
|
[ Strong [ Str "World" ] ]
|
|
|
|
, Str "."
|
|
|
|
]
|
2021-09-19 21:09:51 +02:00
|
|
|
]
|
2017-06-01 09:09:27 +02:00
|
|
|
```
|
|
|
|
|
|
|
|
```
|
|
|
|
% pandoc -f latex -t native
|
|
|
|
\textcolor{orange}{
|
|
|
|
\begin{itemize}
|
|
|
|
\item Item 1
|
|
|
|
\item Item 2
|
|
|
|
\end{itemize}
|
|
|
|
}
|
|
|
|
^D
|
2021-09-19 21:09:51 +02:00
|
|
|
[ Div
|
2021-09-29 06:17:53 +02:00
|
|
|
( "" , [] , [ ( "style" , "color: orange" ) ] )
|
|
|
|
[ BulletList
|
|
|
|
[ [ Para [ Str "Item" , Space , Str "1" ] ]
|
|
|
|
, [ Para [ Str "Item" , Space , Str "2" ] ]
|
|
|
|
]
|
2021-09-19 21:09:51 +02:00
|
|
|
]
|
|
|
|
]
|
2017-06-01 09:09:27 +02:00
|
|
|
```
|
|
|
|
|
|
|
|
```
|
|
|
|
% pandoc -f latex -t native
|
|
|
|
\textcolor{blue}{
|
|
|
|
\begin{itemize}
|
|
|
|
\item Item 1
|
|
|
|
\item Item 2
|
|
|
|
\end{itemize}
|
|
|
|
} some more text
|
|
|
|
^D
|
2021-09-19 21:09:51 +02:00
|
|
|
[ Div
|
2021-09-29 17:28:54 +02:00
|
|
|
( "" , [] , [ ( "style" , "color: blue" ) ] )
|
|
|
|
[ BulletList
|
|
|
|
[ [ Para [ Str "Item" , Space , Str "1" ] ]
|
|
|
|
, [ Para [ Str "Item" , Space , Str "2" ] ]
|
|
|
|
]
|
2021-09-19 21:09:51 +02:00
|
|
|
]
|
|
|
|
, Para
|
2021-09-29 17:28:54 +02:00
|
|
|
[ Str "some" , Space , Str "more" , Space , Str "text" ]
|
2021-09-19 21:09:51 +02:00
|
|
|
]
|
2017-06-01 09:09:27 +02:00
|
|
|
```
|
|
|
|
|
|
|
|
# `\colorbox{}{}`
|
|
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
% pandoc -f latex -t native
|
|
|
|
Hello \colorbox{red}{World}
|
|
|
|
^D
|
2021-09-19 21:09:51 +02:00
|
|
|
[ Para
|
2021-09-29 06:17:53 +02:00
|
|
|
[ Str "Hello"
|
|
|
|
, Space
|
|
|
|
, Span
|
|
|
|
( "" , [] , [ ( "style" , "background-color: red" ) ] )
|
|
|
|
[ Str "World" ]
|
|
|
|
]
|
2021-09-19 21:09:51 +02:00
|
|
|
]
|
2017-06-01 09:09:27 +02:00
|
|
|
```
|
|
|
|
|
|
|
|
```
|
|
|
|
% pandoc -f latex -t native
|
|
|
|
\colorbox{red}{Hello} World
|
|
|
|
^D
|
2021-09-19 21:09:51 +02:00
|
|
|
[ Para
|
2021-09-29 17:28:54 +02:00
|
|
|
[ Span
|
|
|
|
( "" , [] , [ ( "style" , "background-color: red" ) ] )
|
|
|
|
[ Str "Hello" ]
|
|
|
|
, Space
|
|
|
|
, Str "World"
|
|
|
|
]
|
2021-09-19 21:09:51 +02:00
|
|
|
]
|
2017-06-01 09:09:27 +02:00
|
|
|
```
|
|
|
|
|
|
|
|
```
|
|
|
|
% pandoc -f latex -t native
|
|
|
|
Hello \colorbox{blue}{\textbf{World}}
|
|
|
|
^D
|
2021-09-19 21:09:51 +02:00
|
|
|
[ Para
|
2021-09-29 06:17:53 +02:00
|
|
|
[ Str "Hello"
|
|
|
|
, Space
|
|
|
|
, Span
|
|
|
|
( "" , [] , [ ( "style" , "background-color: blue" ) ] )
|
|
|
|
[ Strong [ Str "World" ] ]
|
|
|
|
]
|
2021-09-19 21:09:51 +02:00
|
|
|
]
|
2017-06-01 09:09:27 +02:00
|
|
|
```
|
|
|
|
|
|
|
|
```
|
|
|
|
% pandoc -f latex -t native
|
|
|
|
Hello \colorbox{blue}{\textbf{World}}.
|
|
|
|
^D
|
2021-09-19 21:09:51 +02:00
|
|
|
[ Para
|
2021-09-29 06:17:53 +02:00
|
|
|
[ Str "Hello"
|
|
|
|
, Space
|
|
|
|
, Span
|
|
|
|
( "" , [] , [ ( "style" , "background-color: blue" ) ] )
|
|
|
|
[ Strong [ Str "World" ] ]
|
|
|
|
, Str "."
|
|
|
|
]
|
2021-09-19 21:09:51 +02:00
|
|
|
]
|
2017-06-01 09:09:27 +02:00
|
|
|
```
|
|
|
|
|
|
|
|
```
|
|
|
|
% pandoc -f latex -t native
|
|
|
|
\colorbox{orange}{
|
|
|
|
\begin{minipage}{\textwidth}
|
|
|
|
\begin{itemize}
|
|
|
|
\item Item 1
|
|
|
|
\item Item 2
|
|
|
|
\end{itemize}
|
|
|
|
\end{minipage}
|
|
|
|
}
|
|
|
|
^D
|
2021-09-19 21:09:51 +02:00
|
|
|
[ Div
|
2021-09-29 06:17:53 +02:00
|
|
|
( "" , [] , [ ( "style" , "background-color: orange" ) ] )
|
|
|
|
[ BulletList
|
|
|
|
[ [ Para [ Str "Item" , Space , Str "1" ] ]
|
|
|
|
, [ Para [ Str "Item" , Space , Str "2" ] ]
|
|
|
|
]
|
2021-09-19 21:09:51 +02:00
|
|
|
]
|
|
|
|
]
|
2017-06-01 09:09:27 +02:00
|
|
|
```
|
|
|
|
|
|
|
|
```
|
|
|
|
% pandoc -f latex -t native
|
|
|
|
\colorbox{blue}{
|
|
|
|
\begin{minipage}{\textwidth}
|
|
|
|
\begin{itemize}
|
|
|
|
\item Item 1
|
|
|
|
\item Item 2
|
|
|
|
\end{itemize}
|
|
|
|
\end{minipage}
|
|
|
|
} some more text
|
|
|
|
^D
|
2021-09-19 21:09:51 +02:00
|
|
|
[ Div
|
2021-09-29 06:17:53 +02:00
|
|
|
( "" , [] , [ ( "style" , "background-color: blue" ) ] )
|
|
|
|
[ BulletList
|
|
|
|
[ [ Para [ Str "Item" , Space , Str "1" ] ]
|
|
|
|
, [ Para [ Str "Item" , Space , Str "2" ] ]
|
|
|
|
]
|
2021-09-19 21:09:51 +02:00
|
|
|
]
|
|
|
|
, Para
|
2021-09-29 06:17:53 +02:00
|
|
|
[ Str "some" , Space , Str "more" , Space , Str "text" ]
|
2021-09-19 21:09:51 +02:00
|
|
|
]
|
2017-06-01 09:09:27 +02:00
|
|
|
```
|