(ご注意)
マニュアル記載の例題をコンパイルすると,
! Package tikz Error: Cannot parse this coordinate. というエラーメッセージが
出力されます.
現象として,図が重なって表示され,図と図の間隔がとれないことです.
ネットなどで探索するも結局よくわかりませんでした.
ここでは応急策として,図と図の間隔を\hspace,\vspaceで距離をとりました.
■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■
% Compile: lualatex -interaction batchmode -no-shell-escape foo.tex
% コンパイル時には,オプション "-interaction batchmode -no-shell-escape"を付し,
% コンソールに出力されるメッセージを抑制しています.
\documentclass[a4paper,12pt]{ltjsarticle}
\usepackage[margin=2cm]{geometry}
\usepackage{lmodern}
\usepackage[T1]{fontenc}
\usepackage{planets}
\usepackage{parskip}
\usepackage{showexpl}
\lstset{pos=l, overhang=0pt,hsep=\columnsep,vsep=\bigskipamount,
rframe={},numbers=left,numberstyle=\tiny,numbersep=.3em, xleftmargin=1em,
columns=flexible, language=[LaTeX]TEX,breaklines=true,
basicstyle=\small\ttfamily,tabsize=3, width=0.48\linewidth}
%
\begin{document}
【1】 惑星を描く\\
太陽系の 8 つの惑星の 1 つを描画するのはかなり簡単です。例えば\verb|\planet[surface=earth]| を使用します.
オプションを置き換えることで他の惑星を描画できます.
任意の惑星の名前を持つ地球. これらは惑星ではありませんが,\verb|\planet| コマンドを使用して,
\verb|surface=|キーワードを設定することにより,太陽、月、および冥王星を描画することもできます.
\begin{LTXexample}
\begin{tikzpicture}
\planet[surface=sun]\hspace{2.2cm}
\planet[surface=earth]\hspace{2.2cm}
\planet[surface=moon]\hspace{2.2cm}
\planet[surface=mars]
\end{tikzpicture}
\end{LTXexample}
\vskip2cm
【2】 リング\\
太陽系の 4 つの巨大ガス惑星には環がありますが,デフォルトでは土星だけが環で示されています.
「土星のような」リングのセットは,リング オプションを使用して任意の惑星の周りに描くことができます.
カスタム半径の薄いリングは,ring=オプションで描画できます.
\begin{LTXexample}
\begin{tikzpicture}
\planet[surface=mercury, rings]\hspace{4cm}
\planet[surface=neptune, ring=1.5]
\end{tikzpicture}
\end{LTXexample}
\vskip2cm
【3】 位相\\
惑星または月の半分が太陽の影に隠れています.これは,次の値を取ることができる phase=キーワード
で説明できます.new,first crescent,first half,waxing gibbous,full,waning gibbous,last half または
last crescent.
\begin{LTXexample}
\begin{tikzpicture}
\planet[surface=saturn,
phase=first half, tilt=20]\hspace{5cm}
\planet[surface=saturn,
phase=waxing gibbous, tilt=-20]
\end{tikzpicture}
\end{LTXexample}
\clearpage
【4】季節\\
季節は地球の地軸の傾きによって引き起こされます. これが,北半球の夏が南半球の冬と同時に起こる理由です.
\begin{LTXexample}
\begin{tikzpicture}
\hspace*{3cm}\planet[surface=earth, phase = full, rotation, tilt=23.5]
\end{tikzpicture}
\begin{tikzpicture}
\planet[surface=earth, phase = first half, rotation, tilt=23.5]\hspace{3cm}
\planet[surface=sun]\hspace{3cm}
\planet[surface=earth, phase = last half, rotation, tilt=23.5]
\end{tikzpicture}
\begin{tikzpicture}
\hspace*{3cm}\planet[surface=earth, phase = new, rotation, tilt=23.5]
\end{tikzpicture}
\end{LTXexample}
\end{document}
■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■
■■■■■■■■■■■■■■■■■■■■■■■■
%Compile: lualatex foo.tex
\documentclass[a4paper,10pt]{ltjsarticle}
\usepackage[T1]{fontenc}
\usepackage{tramlines}
\begin{document}
\tramlines{I AM A CAT. As yet I have no name.}
\bigskip
\tramlines{吾輩は猫である.名前はまだない}
\end{document}
■■■■■■■■■■■■■■■■■■■■■■■■
■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■
%Compile: lualatex foo.tex
\documentclass[a4paper,10pt]{ltjsarticle}
\usepackage{lmodern}
\usepackage[T1]{fontenc}
\usepackage{WriteOnGrid}
\usetikzlibrary{decorations.pathreplacing}
\usepackage{amsmath,amssymb}
\usepackage{frcursive}
\usepackage{parskip}
\usepackage{showexpl}
\lstset{pos=b, overhang=0pt,hsep=\columnsep,vsep=\bigskipamount,
rframe={},numbers=left,numberstyle=\tiny,numbersep=.3em, xleftmargin=1em,
columns=flexible, language=[LaTeX]TEX,breaklines=true,
basicstyle=\small\ttfamily,tabsize=3, width=0.4\linewidth}
\begin{document}
{\LARGE【Gridの3種類】}\\
{\gt\bf (1) 5x5タイプ}
\begin{LTXexample}
\begin{EnvGrid}[NumSquares=36x8,,Grid=5x5,Enlarge=3/3]
\end{EnvGrid}
\end{LTXexample}
\bigskip
{\gt\bf (2) Seyesタイプ}
\begin{LTXexample}
\begin{EnvGrid}[NumSquares=18x4,Grid=Seyes,Margin=3]
\end{EnvGrid}
\end{LTXexample}
\bigskip
{\gt\bf (3) Ruled,タイプ}
\begin{LTXexample}
\begin{center}
\begin{EnvGrid}[NumSquares=12x3,Grid=Ruled,Margin=2]
\end{EnvGrid}
\end{center}
\end{LTXexample}
\newpage
{\LARGE【例題】}\\
{\gt\bf (1) Grid=5x5タイプ サンプル}
\begin{LTXexample}
\begin{EnvGrid}[NumSquares=36x8,Grid=5x5]
\WriteLine[Scale=1.5]{吾輩は猫である。名前はまだない。 1\ldots}
\WriteLine[Scale=1.5]{\ttfamily my tetetype text centered on line 2\ldots}
\WriteLine[Scale=1.5]{right-align text on line 3\ldots}
\WriteLine[Scale=1.5,OffsetH=0.1]{\textcolor{red}{red text, 1mm-shifted\ldots}}
\PassLine
\WriteLine[Scale=0.5]{\sffamily sans serif text, reduced by 50\,\%, on line 6\ldots}
\WriteLine[Scale=1.5,OffsetH=3]{\cursive 3 squares-shifted text\ldots}
\end{EnvGrid}
\end{LTXexample}
\bigskip
{\gt\bf (2) Grid=Ruleタイプ サンプル}
\begin{LTXexample}
\begin{EnvGrid}[NumSquares=16x4,Margin=2,Grid=Ruled]
\WriteLine[Scale=1.5]{\textcolor{red}{red text on line 1\ldots}}
\WriteLine[Scale=1.15,OffsetH=1]{$(1+x)^2=1+2x+x^2$ on line 2, with 1-square offset\ldots}
\WriteLine[OffsetH=-1]{\textcolor{blue}{blue text, back to left, on line 3\ldots}}
\end{EnvGrid}
\end{LTXexample}
\end{document}
■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■
■■■■■■■■■■■■■■■■■■■■■■■■■■■■
% Compile: lualatex foo.tex
\documentclass{article}
\usepackage{carolmin}
\usepackage[english]{babel}
\usepackage{lipsum}
\pagestyle{empty}
\newcommand{\ABC}{ABCDEFGHIJKL MNOPQRSTUVWXYZ}
\newcommand{\abc}{abcdefghijkl mnopqrs{}tuvwxyz}
\newcommand{\ABCnb}{ABCDEFGHIJKLMNOPQRSTUVWXYZ}
\newcommand{\abcnb}{abcdefghijklmnopqrs{}tuvwxyz}
\newcommand{\figs}{0123456789}
\newcommand{\sentence}{\cminfamily\Huge \lipsum[1][1-2]}
\begin{document}
\textbf{(1)} \dotfill
\begin{center}
\sentence{}
\end{center}
\bigskip
\textbf{(2)} \dotfill
\begin{center}
{\cminfamily\Huge \ABC\\ \abc\\ \figs\\ }
\end{center}
\bigskip
\textbf{(3)} \dotfill
\begin{center}
\textcmin{\ABCnb{} \abcnb{} \figs} \\
\end{center}
\bigskip
\textbf{(4)} \dotfill
\begin{center}
\textcmin{\textbf{\abcnb{} \figs{}}} \\
\textcmin{\abcnb{} \figs{}} \\
\textbf{\abcnb{} \figs{}} \\
\end{center}
\bigskip
\textbf{(5)} \dotfill
\begin{center}
\cminfamily\bfseries
\Huge \abc{} \figs{}
\end{center}
\end{document}
■■■■■■■■■■■■■■■■■■■■■■■■■■■■
■■■■■■■■■■■■■■■■■■■■■■■■■■■■
% Compile lualatex foo.tex
\documentclass[a4paper,10pt]{ltjsarticle}
\usepackage{lmodern}
\usepackage[T1]{fontenc}
\usepackage{gradient-text}
%
\begin{document}
\newcommand{\hello}{こんにちは!}
\gradientRGB{\hello}{{0,255,0}}{{255,0,0}}
\gradientRGB{富士の高嶺に降る雪も}{{0,255,0}}{{255,0,0}}
\gradientRGB{京都先斗町に降る雪も}{{0,255,0}}{{255,0,0}}
\end{document}
■■■■■■■■■■■■■■■■■■■■■■■■■■■■
Author:konoyonohana