ご質問はこちらへ
絶対値記号の高さの調整について
$|\bekutoru{a}|$ $\Bigl| \bekutoru{a} \Bigr|$ $\left|\bekutoru{a} \right|$
です。
(※注意
コマンド\bekutoruは自作のもので,\newcommand{\bekutoru}[1]{\overrightarrow{\mathstrut#1}}
で定義されます。)
添付ファイルの画像の上のものの下線を引いたものが私が作りたい理想のもので,数式モード内にtikzで棒を描くことも考えましたが,長さの可変性を考えるとあまり現実的でないかなと考えました。
拙い文章で申し訳ありませんがよろしくお願い致します。
なぜかコンパイルしない
\documentclass[a4paper]{article}
\usepackage{amsmath, amssymb}
\usepackage{latexsym}
\usepackage{overcite}
\usepackage{amsthm}
\usepackage{bm}
\begin{document}\end{document}
Let
\begin{align}
\mathcal{L}[x]\equiv\mathcal{L}(\phi_{\alpha}(x), \partial_{\mu}\phi_{\alpha}(x)) \label{eq:1}
\end{align}
be Lagrangian density. And let
\begin{align}
\mathcal{H}[x]\equiv\dot{\phi_{\alpha}}(x)\pi_{\alpha}(x)-\mathcal{L}[x] \label{eq:2}
\end{align}
be Hamiltonian density.
\end{document}
--------------------------------------------------------------------------------------
ログは以下の通りです。
-----------------------------------------------------------------------------
This is ptex2pdf[.lua] version 20200520.0.
Processing Lagrangianenglish.tex
This is e-pTeX, Version 3.14159265-p3.8.3-191112-2.6 (utf8.sjis) (TeX Live 2020/W32TeX) (preloaded format=platex)
restricted \write18 enabled.
entering extended mode
(./Lagrangianenglish.tex
pLaTeX2e <2020-04-12> (based on LaTeX2e <2020-02-02> patch level 5)
L3 programming layer <2020-09-24>
(c:/texlive/2020/texmf-dist/tex/latex/base/article.cls
Document Class: article 2019/12/20 v1.4l Standard LaTeX document class
(c:/texlive/2020/texmf-dist/tex/latex/base/size10.clo))
(c:/texlive/2020/texmf-dist/tex/latex/amsmath/amsmath.sty
For additional information on amsmath, use the `?' option.
(c:/texlive/2020/texmf-dist/tex/latex/amsmath/amstext.sty
(c:/texlive/2020/texmf-dist/tex/latex/amsmath/amsgen.sty))
(c:/texlive/2020/texmf-dist/tex/latex/amsmath/amsbsy.sty)
(c:/texlive/2020/texmf-dist/tex/latex/amsmath/amsopn.sty))
(c:/texlive/2020/texmf-dist/tex/latex/amsfonts/amssymb.sty
(c:/texlive/2020/texmf-dist/tex/latex/amsfonts/amsfonts.sty))
(c:/texlive/2020/texmf-dist/tex/latex/base/latexsym.sty)
(c:/texlive/2020/texmf-dist/tex/latex/cite/overcite.sty)
(c:/texlive/2020/texmf-dist/tex/latex/cite/cite.sty)
(c:/texlive/2020/texmf-dist/tex/latex/amscls/amsthm.sty)
(c:/texlive/2020/texmf-dist/tex/latex/tools/bm.sty)
(c:/texlive/2020/texmf-dist/tex/latex/l3backend/l3backend-dvips.def)
(./Lagrangianenglish.aux) (./Lagrangianenglish.aux) )
No pages of output.
Transcript written on Lagrangianenglish.log.
Lagrangianenglish.dvi -> Lagrangianenglish.pdf
dvipdfmx:fatal: Could not open specified DVI (or XDV) file: Lagrangianenglish.dvi
No output PDF file written.
ptex2pdf processing of Lagrangianenglish.tex failed.
------------------------------------------------------------------------------------
お手数ですが、どこがいけないのか教えてください。
目次の特定の場所のページ数表示を消したい
初心者なので,至らない点もあるかと思いますが,よろしくお願いいたします.
理想とする出力は,以下のような出力
\documentclass[10.5ptj, a4paper]{jsreport}
\begin{document}
% 目次
\tableofcontents
\pagebreak
% 本文
% 1章
\chapter{チャプター1}
\section{セクション1}
セクション1です.
\pagebreak
\section{セクション2}
セクション2です.
\pagebreak
% 2章
\chapter{チャプター2}
\section{セクション1}
セクション1です.
\pagebreak
\section{セクション2}
セクション2です.
\pagebreak
% 参考文献
\begin{thebibliography}{99}
\bibitem{sankou1} 参考文献1
\bibitem{sankou2} 参考文献2
\end{thebibliography}
\pagebreak
% 謝辞
\chapter*{謝辞}
\addcontentsline{toc}{chapter}{謝辞}
謝辞です.
\pagebreak
% 業績
\chapter*{業績}
\addcontentsline{toc}{chapter}{業績}
業績です.
\pagebreak
% 付録
\appendix
\chapter{Appendix A}
付録Aです.
\pagebreak
\chapter{Appendix B}
付録Bです.
\pagebreak
\end{document}
LuaLaTeXのjlreqでの縦書きにおける参考文献番号の向きについて
OS: Linux Mint 20.2(Uma) Cinnamon 64bit
Installed TeXLive packages: texlive-lang-japanese, texlive-luatex, etc...
LuaTeX: LuaTeX Version 1.10.0 (TeX Live 2019/Debian)
【問題】
LuaLaTeXのjlreqでの縦書きで、
参考文献の番号の括弧と数字の向きが、
右に90度回転してしまいます。
それらを縦にしたいです。
【コード】
--- ここから ---
\documentclass[lualatex,12pt,tate,book]{jlreq}
\usepackage{luatexja-ruby}
\begin{document}
\chapter{おわりに}
\begin{thebibliography}{50}
\bibitem[1]{book1}
奥村晴彦、黒木裕介『[改訂第八版]\LaTeXe 美文書作成入門』
(技術評論社、2020年)
\end{thebibliography}
\end{document}
--- ここまで ---
ご回答お願い申し上げます。
latemxの記述の方法
スライド画面の拡大
\documentclass[a4j,papersize,disablejfam,slide,36pt]{jsarticle}
\usepackage[dvips]{graphicx,xcolor}
\usepackage[dvips]{pict2e}
\usepackage{lastpage}
\usepackage{fancyhdr}
\renewcommand{\headrulewidth}{0.0pt}
\pagestyle{fancy}
\lhead{}
\chead{}
\rhead{}
\lfoot{}
\cfoot{\thepage{}/{}\pageref{LastPage}}
\rfoot{}
\usepackage{amsmath}
\usepackage[T1]{fontenc}
\usepackage{textcomp}
\usepackage[utf8]{inputenc}
\usepackage{lxfonts}
\usepackage{bm}
\usepackage{float}
\renewcommand{\abstractname}{abstract}
\begin{document}
ピカチュウフレームが使えません
TeX初心者です。どなたかが作ったピカチュウフレームというものを使おうと思ったのですが、(tcolorbox でピカチュウフレーム - hohei’s diary (hatenablog.com))公開されていたものをそのままコピペしてもエラーがでてしまいました。以下を出力しました。
%〈出力した中身〉
\documentclass[12pt,a4j,papersize,uplatex,fleqn,dvipdfmx]{jsarticle}
\usepackage[most]{tcolorbox}
\tcbset{pikachu/.style={enhanced,colback=white,colframe=black,boxrule=0.6mm,enlarge top by=7.0mm,enlarge bottom by=2.0mm,top=50pt,sharp corners=south,arc=14mm,
overlay={
\begin{scope}[shift={([xshift=9.0mm,yshift=-13mm]frame.north west)},rotate=30]
% 左目
\path[draw=black,fill=black,line width=0.5mm] (0,0) arc (0:360:2mm);
\path[fill=white] (-.05,.08) arc (0:360:1mm);
% 右目
\path[draw=black,fill=black,line width=0.5mm] (1.2,0) arc (0:360:2mm);
\path[fill=white] (1.1-.05,.08) arc (0:360:1mm);
% ハナ
\path[draw=black,fill=black] (0.4,-.15) circle [x radius=0.06,y radius=0.03] (0:360);
% クチ
\path[draw=black,line width=0.4mm,xshift=0.5mm,yshift=-3.5mm] (0,-.02) .. controls (.1,-.1) and (.15,-.14) .. (.35,0) % 左
.. controls (-.15+.7,-.14) and (-.1+.7,-.1) .. (0+.7,-.02); % 右
% ほっぺ
\path[draw=black,fill=white,line width=0.4mm] (1.6,-0.4) arc (10:290:2mm);
\end{scope}}
,
underlay={
\begin{scope}[shift={([xshift=0mm,yshift=0mm]frame.north west)}]
% 耳とフレームが重なるところを白塗り(右)
\path[draw=white,line width=0.7mm] (1.51,-0.03)--(2.55,-0.03);
% 耳とフレームが重なるところを白塗り(左)
\path[draw=white,line width=2.0mm] (0.1,-0.84)--(0.1,-2);
\end{scope}}
,
% 右耳
underlay={
\begin{scope}[shift={([xshift=0mm,yshift=0mm]frame.north west)}]
% 耳のメイン
\path[draw=black,fill=white,line width=0.6mm,rounded corners=1.0pt] (1.5,-0.03) .. controls (2.5,0.3) and (3.5,-0.5) .. (3.7,-0.6) .. controls (2.7,-0.5) and (2.5,-0.5) .. (2.2,-0.4);
% 耳の黒い部分の境界
\clip (1.5,-0.03) .. controls (2.5,0.3) and (3.5,-0.5) .. (3.7,-0.6) .. controls (2.7,-0.5) and (2.5,-0.5) .. (2.2,-0.4);
\fill[black] (2.4,-0.5) to [out=10,in=210] (3.4,-0.3) -- (4,-0.7) -- cycle;
\end{scope}}
,
% 左耳
underlay={
\begin{scope}[shift={([xshift=9.06mm,yshift=4.93mm]frame.north west)},rotate=60]
% 耳のメイン xscale=-1 で反転
\path[xscale=-1,draw=black,fill=white,line width=0.6mm,rounded corners=1.0pt] (1.5,-0.03) .. controls (2.5,0.3) and (3.5,-0.5) .. (3.7,-0.6) .. controls (2.7,-0.5) and (2.5,-0.5) .. (2.2,-0.4);
% 耳の黒い部分の境界
\clip[xscale=-1] (1.5,-0.03) .. controls (2.5,0.3) and (3.5,-0.5) .. (3.7,-0.6) .. controls (2.7,-0.5) and (2.5,-0.5) .. (2.2,-0.4);
\fill[xscale=-1,black] (2.4,-0.5) to [out=10,in=210] (3.4,-0.3) -- (4,-0.7) -- cycle;
\end{scope}}
,
% しっぽ
underlay={
\begin{scope}
[xscale=1.1,yscale=0.4,shift={([xshift=-5mm,yshift=-19mm]frame.north east)},rotate=38]
% [xscale=1,yscale=1,shift={([xshift=-8mm,yshift=-50mm]frame.north east)},rotate=0]
% グリッド
% \draw [help lines] (-6,0) grid (6,6);
\path[draw=black,fill=white,line width=0.6mm,rounded corners=1.0pt]
(0,0) -- (0.3,0) -- (0.7,1.2) -- (-0.5,1.4) -- (-0.1,2.7) -- (-1.8,3) to [out=80,in=245] (-1,5.4) -- (-3.9,6) to [out=245,in=90] (-4.6,2.2) -- (-2,2) -- (-2.2,1.1) -- (0.2,0.7) -- cycle;
% 上とおなじの clip
\clip (0,0) -- (0.3,0) -- (0.7,1.2) -- (-0.5,1.4) -- (-0.1,2.7) -- (-2,3) to [out=80,in=245] (-1.2,5.4) -- (-4.1,6) to [out=245,in=90] (-4.8,2.2) -- (-2.2,2) -- (-2.5,1.1) -- (0.2,0.7) -- cycle;
\fill (-0.8,0.7) -- (-0.2,0.9) -- (-0.5,1.1) -- (-0.2,1.1) -- (-0.4,1.2) -- (-0.1,1.25) -- (-0.4,1.45)
-- (1,1.5) -- (1,0) -- (-0.5,0) -- cycle;
\end{scope}}
,
% 背中の模様
underlay={
\begin{scope}[shift={(frame.north west)},rounded corners=10pt]
\path[fill=black,xshift=36mm,yshift=0mm] (0,0) -- (0.3,-0.8) -- (0.35,0);
\path[fill=black,xshift=42mm,yshift=0mm] (0,0) -- (0.3,-0.8) -- (0.35,0);
\end{scope}}
}}
\begin{document}
\begin{tcolorbox}[pikachu]
a
\end{tcolorbox}
\end{document}
なおエラー内容は以下です。
%〈エラー内容〉
4
Undefined control sequence.
l.4 \documentclass
[12pt,a4j,papersize,uplatex,fleqn,dvipdfmx]{jsarticle}
「upTeX」にしてみたりと知人の助言を頂きましたが出来ませんでした。
ちなみに知人のパソコンではコンパイル出来ていました。
なおTeXのバージョンなど詳細は全て揃っていたはずです。
どなたか知識のある方、誤りなどご指摘くだされば幸いです。