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

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

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

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

Q&A

解決済

1回答

1247閲覧

Latex \bibliographyの中のヘッダーだけを編集

shu214

総合スコア18

LaTeX

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

0グッド

0クリップ

投稿2022/12/28 11:53

編集2022/12/29 06:27

実現したいこと

  • bibliographyのヘッダーが左右に「参考文献」と表示されるのを、右だけにしたい。

イメージ説明

  • 本文のヘッダーに関しては変更をしたくない(下記コードをコンパイルした際の3ページ目のヘッダーは下の画像のままにしたい)。

イメージ説明

該当のソースコード

Latex

1\addcontentsline{toc}{chapter}{参考文献} 2\renewcommand{\bibname}{参考文献} %これがないと,タイトルが「関連図書」になってしまう 3\bibliographystyle{junsrt} %本文に\cite{}を入れることで,参考文献表示 4\bibliography{reference} %bibtexファイルの読み込み



環境:CloudLatex( https://cloudlatex.io/
参考コード( https://qiita.com/non-caffeine/items/1a7a3ad2c8f840d8748f
(好きな名前.texとしてください)

Latex

1\documentclass[12pt,a4j,dvipdfmx]{jreport} 2 3\usepackage{comment} 4\usepackage{float} 5%\usepackage{color} 6\usepackage{multicol} 7\usepackage{pict2e} 8\usepackage{wrapfig} 9\usepackage{graphicx} 10\usepackage[hang,small,bf]{caption} 11\usepackage[subrefformat=parens]{subcaption} 12\captionsetup{compatibility=false} 13\usepackage{bm} 14\usepackage{url} 15\usepackage{underscore} 16\usepackage{colortbl} 17\usepackage{tabularx} 18\usepackage{fancyhdr} 19\usepackage{ulem} 20\usepackage{cite} 21\usepackage{amsmath,amssymb,amsfonts} 22\usepackage{algorithmic} 23\usepackage{textcomp} 24\usepackage{xcolor} 25\usepackage[ipaex]{pxchfon} 26\usepackage[top=30truemm,bottom=30truemm,left=25truemm,right=25truemm]{geometry} 27\usepackage{lscape} 28 29 30\usepackage[top=30truemm,bottom=30truemm,left=25truemm,right=25truemm]{geometry} 31 32\begin{document} 33 34\thispagestyle{empty} 35\begin{center} 36 37\vspace{20mm} 38{\Large\noindent 文書}\\ 39\vspace{40mm} 40{\Huge\noindent\textbf{タイトル}}\\ 41\vspace{40mm} 42 43{\Large\noindent 442022年12月29日\\ 45\vspace{\baselineskip} 46名前 47} 48\vspace{40mm} 49 50\end{center} 51 52\thispagestyle{empty} 53\clearpage 54 55%===================================================================================== 56\renewcommand{\abstractname}{要旨} 57 58\begin{abstract} 59要旨を記入。 60\end{abstract} 61 62%===================================================================================== 63 64% 目次の表示 65\tableofcontents 66 67%===================================================================================== 68\pagestyle{fancy} 69\lhead{\rightmark} 70\renewcommand{\chaptermark}[1]{\markboth{\ \normalfont\thechapter\ 章~~#1}{}} 71%===================================================================================== 72 73\chapter{はじめに} %章 74 75\section{背景} %1.1 76文章を記入。\\ 77a\\a\\a\\a\\a\\a\\a\\a\\a\\a\\a\\a\\a\\a\\a\\a\\a\\a\\a\\a\\a\\a\\a\\a\\a\\a\\a\\a\\a\\a\\a\\a\\a\\a\\ 78\subsection{---とは} %1.1.1 79\cite{keddie1997film,goossens1994latex,mittelbach2004latex,steward2000overview,lamport1985i1,hunter1994reconsidering,oetiker1998not,lamport1991latex,morton1954swelling,raulf2014latex,goossens1997latex,yassin1994latex} 80\subsection{-----とは} %1.1.2 81\cite{keddie2010fundamentals,cabanes20121,jacob1993composition,micheletto1995simple,ng1981reaction} 82 83\section{目的} 84 85\section{校正} 86 87\chapter{結果} 88 89\chapter{考察} 90 91\chapter{おわりに} 92まとめを記入。 93%===================================================================================== 94\chapter*{謝辞} 95\addcontentsline{toc}{chapter}{謝辞} 96謝辞を記入。 97 98%===================================================================================== 99 100\addcontentsline{toc}{chapter}{参考文献} 101\renewcommand{\bibname}{参考文献} 102\bibliographystyle{junsrt} 103\bibliography{sample} 104 105\end{document}


bibファイル(sample.bibとしてください)

bib

1@article{keddie1997film, 2 title={Film formation of latex}, 3 author={Keddie, Joseph L}, 4 journal={Materials Science and Engineering: R: Reports}, 5 volume={21}, 6 number={3}, 7 pages={101--170}, 8 year={1997}, 9 publisher={Elsevier} 10} 11@book{goossens1994latex, 12 title={The LATEX companion}, 13 author={Goossens, Michel and Mittelbach, Frank and Samarin, Alexander}, 14 volume={1}, 15 year={1994}, 16 publisher={Addison-Wesley Reading} 17} 18@book{mittelbach2004latex, 19 title={The LATEX companion}, 20 author={Mittelbach, Frank and Goossens, Michel and Braams, Johannes and Carlisle, David and Rowley, Chris}, 21 year={2004}, 22 publisher={Addison-Wesley Professional} 23} 24@article{steward2000overview, 25 title={An overview of polymer latex film formation and properties}, 26 author={Steward, PA and Hearn, J and Wilkinson, MC}, 27 journal={Advances in colloid and interface science}, 28 volume={86}, 29 number={3}, 30 pages={195--267}, 31 year={2000}, 32 publisher={Elsevier} 33} 34@book{lamport1985i1, 35 title={I1 ($\backslash$LaTeX)---A Document}, 36 author={Lamport, Leslie}, 37 volume={410}, 38 year={1985}, 39 publisher={pub-AW} 40} 41@article{hunter1994reconsidering, 42 title={Reconsidering the functions of latex}, 43 author={Hunter, J Robert}, 44 journal={Trees}, 45 volume={9}, 46 number={1}, 47 pages={1--5}, 48 year={1994}, 49 publisher={Springer} 50} 51@article{oetiker1998not, 52 title={The not so short introduction to latex 2}, 53 author={Oetiker, Tobias and Partl, Hubert and Hyna, Irene and Schlegl, Elisabeth}, 54 journal={Available as CTAN/info/lshort/lshort2e. pdf and CTAN/info/lshort/lshort2e}, 55 volume={600}, 56 year={1998} 57} 58@book{lamport1991latex, 59 title={LaTeX}, 60 author={Lamport, Leslie}, 61 year={1991}, 62 publisher={{\'S}Company Cyfronet} 63} 64@article{morton1954swelling, 65 title={Swelling of latex particles}, 66 author={Morton, Maurice and Kaizerman, Samuel and Altier, Mary W}, 67 journal={Journal of Colloid Science}, 68 volume={9}, 69 number={4}, 70 pages={300--312}, 71 year={1954}, 72 publisher={Elsevier} 73} 74@incollection{raulf2014latex, 75 title={The latex story}, 76 author={Raulf, Monika}, 77 booktitle={History of Allergy}, 78 volume={100}, 79 pages={248--255}, 80 year={2014}, 81 publisher={Karger Publishers} 82} 83@book{goossens1997latex, 84 title={The LATEX graphics companion: illustrating documents with TEX and PostScript}, 85 author={Goossens, Michel and Rahtz, Sebastian PQ and Rahtz, Sebastian and Mittelbach, Frank}, 86 volume={3}, 87 year={1997}, 88 publisher={Addison-Wesley Professional} 89} 90@article{yassin1994latex, 91 title={Latex allergy in hospital employees.}, 92 author={Yassin, Mohamed S and Lierl, Michelle B and Fischer, Thomas J and O'Brien, Kevin and Cross, Jennifer and Steinmetz, Christine}, 93 journal={Annals of allergy}, 94 volume={72}, 95 number={3}, 96 pages={245--249}, 97 year={1994} 98} 99@book{keddie2010fundamentals, 100 title={Fundamentals of latex film formation: processes and properties}, 101 author={Keddie, Joseph and Routh, Alexander F}, 102 year={2010}, 103 publisher={Springer Science \& Business Media} 104} 105@article{cabanes20121, 106 title={1 Latex Allergy: Position Paper}, 107 author={Caba{\~n}es, N and Igea, JM and de La Hoz, B and Agust{\'\i}n, P and Blanco, C and Dom{\'\i}nguez, J and L{\'a}zaro, M and Lleonart, R and M{\'e}ndez, J and Nieto, A and others}, 108 journal={Journal of Investigational Allergology and Clinical Immunology}, 109 volume={22}, 110 number={5}, 111 pages={313}, 112 year={2012} 113} 114@article{jacob1993composition, 115 title={The composition of natural latex fromHevea brasiliensis}, 116 author={Jacob, Jean-Louis and d’Auzac, Jean and Prevot, Jean-Claude}, 117 journal={Clinical reviews in allergy}, 118 volume={11}, 119 number={3}, 120 pages={325--337}, 121 year={1993}, 122 publisher={Springer} 123} 124@article{micheletto1995simple, 125 title={A simple method for the production of a two-dimensional, ordered array of small latex particles}, 126 author={Micheletto, Ruggero and Fukuda, Hiroyaki and Ohtsu, Motoichi}, 127 journal={Langmuir}, 128 volume={11}, 129 number={9}, 130 pages={3333--3336}, 131 year={1995}, 132 publisher={ACS Publications} 133} 134@article{ng1981reaction, 135 title={Reaction of natural rubber latex with performic acid}, 136 author={Ng, S-C and Gan, L-H}, 137 journal={European Polymer Journal}, 138 volume={17}, 139 number={10}, 140 pages={1073--1077}, 141 year={1981}, 142 publisher={Elsevier} 143}

試したこと

\pagestyleや\thispagestyleで\markbothを設定する方法は試しましたができませんでした。

よろしくお願いいたします。

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

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

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

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

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

guest

回答1

0

ベストアンサー

69 行目にある \lhead{\rightmark} を

LaTeX

1\lhead{}

に変更すればお望みの体裁になります。

投稿2022/12/29 06:07

nekotail

総合スコア128

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

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

shu214

2022/12/29 06:19

ご回答ありがとうございます。 ご回答いただいた内容ですと、本文のヘッダーも変更されてしまいます。 そうではなく、bibliographyの中だけ(参考文献の2ページ)を変更したいです。 ご回答いただいて、質問本文からはその意図が伝わりにくいと感じましたので、コードも含めた質問文を編集させていただきます。 よろしければ、再度ご回答いただけると嬉しいです。
nekotail

2022/12/29 07:12

回答の修正方法がわかりませんでしたので、この欄で失礼します。 参考文献ページだけの変更をお望みでしたら、最終行あたりに \lhead{} を記述する方法ではいかがでしょうか。
shu214

2022/12/29 07:53

ありがとうございます。 ご提案の内容がヒントとなり、望みの体裁を実現できました! 大変勉強になりました。 ありがとうございました。
shu214

2022/12/29 08:03

具体的には、下記の3行目と4行目を追加することでできました。 ``` \addcontentsline{toc}{chapter}{参考文献} \renewcommand{\bibname}{参考文献} %これがないと,タイトルが「関連図書」になってしまう \lhead{} \rhead{参考文献} \bibliographystyle{junsrt} %本文に\cite{}を入れることで,参考文献表示 \bibliography{reference} %bibtexファイルの読み込み ```
guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

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

ただいまの回答率
85.48%

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

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

質問する

関連した質問