2

I want to create an invitation card with curved text on the front page. A simple text on the edge of a circle is all I need, no complexer curves. I stumbled on the tikz package but am not satisfied - most likely due to missuse on my part.

\documentclass[a5paper,foldmark]{scrartcl} \usepackage{graphicx} \usepackage{graphicx} \begin{document} \begin{tikzpicture} \draw[decorate,decoration={text along path,text={Invitation},text align=center}] (0,0) arc[start angle=240, end angle=-60, radius=5cm]; \end{tikzpicture} \end{document} 

My Problems are the following:

  • If I Increade the radius, then it wont be centered anymore. How can I get a bigger, but still centered radius?
  • I managed to increase the textsize by an {\Huge {tikz enviroment}}. How to get it even bigger?
  • How to get it to set it like \textbf{...}?

Future work on the document: I want it to go with a fancy fonts, but I wanted to tackle one Problem at a time. This Fonts require LuaLaTex,

\usepackage{fontspec} \setmainfont{QTSlogantype} .... \Fontlukas\slshape \Fontskrivan\slshape .... 

I am using MikTeX and TeXstudio as editor - if there are some concernes.

Having used TeX only for math so far, I am rather shocked by the steep learning curve I am meeting at "normal" typesetting.

All help is welcome - even when pointing out impossible/imcompatible tasks. If there is a package/command which just simply does, what I want, I would be more then happy.

Tanks a lot!

1 Answer 1

3

Welcome to TeX.SX! Unrelated, but please note that you should only ask one question at a time on this site. Anyways, here are some approaches to tackle your issues:

First of all, you say that you want the TikZ drawing to be centered on the page. So, you should actually center it using the \centering command. The TikZ drawing is just placed in a box which sits on the left of the text frame otherwise.

I don't know how long the text should be that you want to typeset eventually, but it will probably be enought to only draw the arc from 60° to 150° and not draw almost a complete circle. This way, you also won't need to clip away the bottom part of the bounding box.

Finally, in order to apply styling to the text, you need to escape the relevant commands using |...| which you probably already found out as you say that you got \Huge working. You can set arbitrary (and thus larger) font sizes using \fontsize{...}{...}\selectfont where the first argument denotes the font size and the second the line spacing (which should be at least equal or larger than the font size).

Of course, using this approach, it is difficult to use commands that take arguments for styling such as \textbf{...}. Luckily, there is also another command that does the same but acts like a switch taking no argument: \bfseries.

Taken together all the above ideas, you could come up with the following MWE (I don't have the fonts, but it should be easy to adjust this by using the code you provide above):

\documentclass[a5paper]{scrartcl} \usepackage{tikz} \usetikzlibrary{decorations.text} \begin{document} {\centering \begin{tikzpicture} \draw[ decorate, decoration={ text along path, text={|\fontsize{50}{50}\selectfont\bfseries|Invitation}, text align=center } ] (0,0) arc[start angle=120, end angle=60, radius=10cm]; \end{tikzpicture}} \end{document} 

output of above code

I suggest that you make yourself familiar with basic commands such as \centering and \bfseries as well as with \fontsize as you probably need them quite often in the future.

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.