質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.30%
LaTeX

LaTeXは、レスリー・ランポートが開発したテキストベースの文書整形システムです。 電子製版ソフトウェアである「TeX」にマクロパッケージを組み込む形で構成されており、 通常のTeXより扱いやすくなっているのが特徴です。

TeX

フリーの組版システムで、字や図版などの要素を紙面に配置するという作業をコンピュータで行います

Q&A

解決済

1回答

112閲覧

TeXで、コンパイルはできるけど、警告が消えず、うまく表示できない。

normal1980

総合スコア1

LaTeX

LaTeXは、レスリー・ランポートが開発したテキストベースの文書整形システムです。 電子製版ソフトウェアである「TeX」にマクロパッケージを組み込む形で構成されており、 通常のTeXより扱いやすくなっているのが特徴です。

TeX

フリーの組版システムで、字や図版などの要素を紙面に配置するという作業をコンピュータで行います

0グッド

0クリップ

投稿2025/06/02 19:41

実現したいこと

日本国憲法の前文を見開き2ページで、表示したい。
(英語の文字数が多くて、次のページに表示されるのは、良しとする。)

発生している問題・分からないこと

画像のように、1ページ目に、日本語のみが表示される。
1ページに、日本語と英語の文字を、見開き2ページのように表示できない。
うまくいかない

エラーメッセージ

error

1下記の警告があります。このままでもPDFの出力は可能ですが、修正を検討してください。 2日本国憲法.tex 3Underfull \vbox (badness 10000) has occurred while \output is active []

該当のソースコード

tex

1\documentclass[twocolumn]{jsarticle} 2\begin{document} 3 \title{日本国憲法} 4 \author{日本太郎} 5 \date{2025年6月2日} 6 \maketitle 7 こんにちは、日本国憲法です。 8 9 \section*{全文} 10 11日本国民は、正当に選挙された国会における代表者を通じて行動し、われらとわれらの子孫のために、諸国民との協和による成果と、わが国全土にわたって自由のもたらす恵沢を確保し、政府の行為によって再び戦争の惨禍が起る 12ことのないやうにすることを決意し、ここに主権が国民に存することを宣言し、この憲法を確定する。 13 14そもそも国政は、国民の厳粛な信託によるものであって、その権威は国民に由来し、その権力は国民の代表者がこれを行使し、その福利は国民がこれを享受する。これは人類普遍の原理であり、この憲法は、かかる原理に基づくものである。われらは、これに反する一切の憲法、法令及び詔勅を排除する。 15 16日本国民は、恒久の平和を念願し、人間相互の関係を支配する崇高な理想を深く自覚するのであって、平和を愛する諸国民の公正と信義に信頼して、われらの安全と生存を保持しようと決意した。われらは、平和を維持し、専制と隷 17従、圧迫と偏狭を地上から永遠に除去しようと努めている国際社会において、名誉ある地位を占めたいと思ふ。われらは、全世界の国民が、ひとしく恐怖と欠乏から免れ、平和のうちに生存する権利を有することを確認する。 18 19われらは、いづれの国家も、自国のことのみに専念して他国を無視してはならないのであって、政治道徳の法則は、普遍的なものであり、この法則に従ふことは、自国の主権を維持し、他国と対等関係に立たうとする各国の責務であ 20ると信ずる。 21日本国民は、国家の名誉にかけ、全力をあげてこの崇高な理想と目的を達成することを誓ふ。 22 23 \newpage 24 25 \section*{INTRODUCTION} 26 We, the Japanese people, acting through our duly elected representatives in the National Diet, determined that we shall secure for ourselves and our posterity the fruits of peaceful cooperation with all nations and the blessings of liberty throughout this land, and resolved that never again shall we be visited with the horrors of war through the action of government, do proclaim that sovereign power resides with the people and do firmly establish this Constitution.Government is a sacred trust of the people, the authority for which is derived from the people, the powers of which are exercised by the representatives of the people, and the benefits of which are enjoyed by the people.This is a universal principle of mankind upon which this Constitution is founded.We reject and revoke all constitutions, laws, ordinances, and rescripts in conflict herewith. 27 28 We, the Japanese people, desire peace for all time and are deeply conscious of the high ideals controlling human relationship, and we have determined to preserve our security and existence, trusting in the justice and faith of the peace-loving peoples of the world.We desire to occupy an honored place in an international society striving for the preservation of peace, and the banishment of tyranny and slavery, oppression and intolerance for all time from the earth.We recognize that all peoples of the world have the right to live in peace, free from fear and want. 29 30 We believe that no nation is responsible to itself alone, but that laws of political morality are universal; and that obedience to such laws is incumbent upon all nations who would sustain their own sovereignty and justify their sovereign relationship with other nations. 31 32 We, the Japanese people, pledge our national honor to accomplish these high ideals and purposes with all our resources. 33 34 35\end{document} 36

LOG

1This is e-upTeX, Version 3.141592653-p4.1.1-u1.30-230214-2.6 (utf8.euc) (TeX Live 2024) (preloaded format=platex 2025.5.13) 3 JUN 2025 04:28 2entering extended mode 3 restricted \write18 enabled. 4**日本国憲法.tex 5(./日本国憲法.tex 6pLaTeX2e <2023-02-14>+1, based on 7LaTeX2e <2024-11-01> patch level 2 8L3 programming layer <2025-01-18> 9(/usr/local/texlive/2024/texmf-dist/tex/platex/jsclasses/jsarticle.cls 10Document Class: jsarticle 2023/02/23 jsclasses (okumura, texjporg) 11Class jsarticle Info: Autodetected engine: pLaTeX on input line 236. 12\jsc@mpt=\dimen157 13\jsc@mmm=\dimen158 14\jsc@smallskipamount=\skip49 15LaTeX Info: Redefining \textmc on input line 511. 16LaTeX Info: Redefining \textgt on input line 513. 17\symmincho=\mathgroup4 18LaTeX Font Info: Overwriting symbol font `mincho' in version `bold' 19(Font) JY1/mc/m/n --> JY1/gt/m/n on input line 575. 20LaTeX Font Info: Font shape `JT1/mc/m/n' will be 21(Font) scaled to size 9.60999pt on input line 769. 22LaTeX Font Info: Font shape `JY1/mc/m/n' will be 23(Font) scaled to size 9.60999pt on input line 769. 24\fullwidth=\dimen159 25LaTeX Font Info: Font shape `JT1/mc/m/n' will be 26(Font) scaled to size 7.68799pt on input line 922. 27LaTeX Font Info: Font shape `JY1/mc/m/n' will be 28(Font) scaled to size 7.68799pt on input line 922. 29\c@part=\count195 30\c@section=\count196 31\c@subsection=\count197 32\c@subsubsection=\count198 33\c@paragraph=\count199 34\c@subparagraph=\count266 35\@abstractbox=\box69 36\c@figure=\count267 37\c@table=\count268 38\abovecaptionskip=\skip50 39\belowcaptionskip=\skip51 40\jsc@tocl@width=\dimen160 41\@lnumwidth=\dimen161 42\bibindent=\dimen162 43(/usr/local/texlive/2024/texmf-dist/tex/platex/jsclasses/jslogo.sty 44Package: jslogo 2019/07/25 okumura, texjporg 45LaTeX Info: Redefining \TeX on input line 82. 46LaTeX Info: Redefining \LaTeX on input line 135. 47LaTeX Info: Redefining \LaTeXe on input line 188. 48) 49\heisei=\count269 50) (/usr/local/texlive/2024/texmf-dist/tex/latex/l3backend/l3backend-dvips.def 51File: l3backend-dvips.def 2024-05-08 L3 backend support: dvips 52\l__pdf_internal_box=\box70 53\l__pdf_backend_content_box=\box71 54\l__pdf_backend_model_box=\box72 55\g__pdf_backend_annotation_int=\count270 56\g__pdf_backend_link_int=\count271 57\g__pdf_backend_link_sf_int=\count272 58) (./日本国憲法.aux) 59\openout1 = `日本国憲法.aux'. 60 61LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 2. 62LaTeX Font Info: ... okay on input line 2. 63LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 2. 64LaTeX Font Info: ... okay on input line 2. 65LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 2. 66LaTeX Font Info: ... okay on input line 2. 67LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 2. 68LaTeX Font Info: ... okay on input line 2. 69LaTeX Font Info: Checking defaults for TS1/cmr/m/n on input line 2. 70LaTeX Font Info: ... okay on input line 2. 71LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 2. 72LaTeX Font Info: ... okay on input line 2. 73LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 2. 74LaTeX Font Info: ... okay on input line 2. 75LaTeX Font Info: Checking defaults for JY1/mc/m/n on input line 2. 76LaTeX Font Info: ... okay on input line 2. 77LaTeX Font Info: Checking defaults for JT1/mc/m/n on input line 2. 78LaTeX Font Info: ... okay on input line 2. 79LaTeX Font Info: Font shape `JT1/mc/m/n' will be 80(Font) scaled to size 16.60605pt on input line 6. 81LaTeX Font Info: Font shape `JY1/mc/m/n' will be 82(Font) scaled to size 16.60605pt on input line 6. 83LaTeX Font Info: Font shape `JT1/mc/m/n' will be 84(Font) scaled to size 11.53198pt on input line 6. 85LaTeX Font Info: Font shape `JY1/mc/m/n' will be 86(Font) scaled to size 11.53198pt on input line 6. 87LaTeX Font Info: External font `cmex10' loaded for size 88(Font) <12> on input line 6. 89LaTeX Font Info: External font `cmex10' loaded for size 90(Font) <8> on input line 6. 91LaTeX Font Info: External font `cmex10' loaded for size 92(Font) <6> on input line 6. 93LaTeX Font Info: Font shape `JY1/mc/m/n' will be 94(Font) scaled to size 5.76599pt on input line 6. 95LaTeX Font Info: Font shape `JT1/gt/m/n' will be 96(Font) scaled to size 11.53198pt on input line 9. 97LaTeX Font Info: Font shape `JY1/gt/m/n' will be 98(Font) scaled to size 11.53198pt on input line 9. 99 100Underfull \vbox (badness 10000) has occurred while \output is active [] 101 102 103 104 105 106[1 107 108 109] 110 111 112 113[2] (./日本国憲法.aux) 114 *********** 115pLaTeX2e <2023-02-14>+1, based on 116LaTeX2e <2024-11-01> patch level 2 117L3 programming layer <2025-01-18> 118 *********** 119 ) 120Here is how much of TeX's memory you used: 121 692 strings out of 473863 122 11498 string characters out of 5731558 123 406351 words of memory out of 5000000 124 24010 multiletter control sequences out of 15000+600000 125 567547 words of font info for 75 fonts, out of 8000000 for 9000 126 934 hyphenation exceptions out of 8191 127 43i,8n,51p,905b,263s stack positions out of 10000i,1000n,20000p,200000b,200000s 128 129Output written on 日本国憲法.dvi (2 pages, 5796 bytes). 130 131 132日本国憲法.dvi -> 日本国憲法.pdf 133[1][2] 13461477 bytes written 135

試したこと・調べたこと

  • teratailやGoogle等で検索した
  • ソースコードを自分なりに変更した
  • 知人に聞いた
  • その他
上記の詳細・結果

\documentclass[a4paper,twocolumn]{jsarticle}
のように、a4paper,を追加してみたがうまくいかなかった。

補足

環境:Cloud LaTeX: https://cloudlatex.io/

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

guest

回答1

0

ベストアンサー

23 行目の行頭(\newpage の前)に全角スペースが入っていることが原因です。
それを取れば右側に英文が表示されます。

投稿2025/06/04 10:51

nekotail

総合スコア144

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

normal1980

2025/06/04 11:48

回答ありがとうございます。 試したところ問題が解決しました! ベストアンサーに選ばせていただきました。
guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.30%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問