Page LayoutJournal name in right top corner

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
avidanium
Posts: 12
Joined: Mon Oct 12, 2009 10:49 pm

Journal name in right top corner

Post by avidanium »

Hello,

I would like to display on the first page of an article a box on the right corner of the page (i.e. above the title) with the text "to appear in journal xxx".

Any help would be appreciated.

Thank you,

Ron

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Journal name in right top corner

Post by frabjous »

What about just putting this in the preamble:

Code: Select all

\usepackage{fancyhdr}
\fancypagestyle{plain}{%
	\fancyhead[R]{\fbox{to appear in journal xx}}
	\renewcommand{\headrulewidth}{0pt}
}
Does that work well enough?
avidanium
Posts: 12
Joined: Mon Oct 12, 2009 10:49 pm

Re: Journal name in right top corner

Post by avidanium »

Hello,

Thank you for your help. It worked partially. The main problem is that the bottom part of the page got cut. This includes text and also Keywords and AMS classification. Note: the problem exists only on first page.

Also the text "to appear in journal xx" appeared with the sign [R] before and was set to the left. Is there a way to have smaller font and that that the box appears much further right i.e. in the top right corner of the first page but not above the title but much more to the right?

Thank you very much,

Ron
User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

Journal name in right top corner

Post by gmedina »

Hi,
avidanium wrote:...The main problem is that the bottom part of the page got cut. This includes text and also Keywords and AMS classification. Note: the problem exists only on first page.

Also the text "to appear in journal xx" appeared with the sign [R] before and was set to the left...
Without some minimal and compilable code allowing us to reproduce your problem, is really difficult to provide effective help.

The following example code (which uses frabjous's idea) works OK for me.

Code: Select all

\documentclass{article} 
\usepackage{fancyhdr}

\fancypagestyle{plain}{%
   \fancyhead[R]{\fbox{to appear in journal xx}}
   \renewcommand{\headrulewidth}{0pt}
}

\title{The title}
\author{The Author}

\begin{document} 
\maketitle

\end{document}
avidanium wrote:...Is there a way to have smaller font and that that the box appears much further right i.e. in the top right corner of the first page but not above the title but much more to the right?
As an alternative to frabjous's suggestion, You can use the textpos package to place some material (a framed box with text, in this particular case) anywhere inside a page; a little example:

Code: Select all

\documentclass{article} 
\usepackage{textpos}

\title{The title}
\author{The Author}

\begin{document} 
\maketitle
\begin{textblock*}{3cm}(11cm,-3.2cm)
  \fbox{\footnotesize to appear in journal x}
\end{textblock*}

\end{document}
1,1,2,3,5,8,13,21,34,55,89,144,233,...
User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Journal name in right top corner

Post by frabjous »

avidanium wrote:Hello,

Thank you for your help. It worked partially. The main problem is that the bottom part of the page got cut. This includes text and also Keywords and AMS classification. Note: the problem exists only on first page.
Sigh. Why didn't you say you were using an AMS document class? You said article, so I assumed you were using article.cls. If you want help with these things, you need to be explicit about what the circumstances are.

fancyhdr does not work well with AMS classes in my experience. Are you using amsart? Provide a MWE as per board rules, please.

Another option besides textpos might be a watermark:

Code: Select all

\usepackage[printwatermark=true,%
            firstpage,%
            color=black,%
            textmark={\fbox{to appear in xx}},%
            xcoord=50,%
            ycoord=100,%
            angle=0,%
            fontsize=12,%
            fontseries={}%
]{xwatermark}
Change xcoord and ycoord to position it correctly on the page (the default units are mm), and change the fontsize option, etc., to control the size, etc. See the xwatermark documentation for more info.

Finally, what you say about "[R]" appearing makes me think that it's possible that your TeX system is not up to date. You might want to update it.
avidanium
Posts: 12
Joined: Mon Oct 12, 2009 10:49 pm

Re: Journal name in right top corner

Post by avidanium »

The suggestion with \usepackage{textpos} worked.
Thank you very much.
Post Reply