GeneralCommenting in Texniccenter like in word?

General information and discussion about TeXnicCenter
Post Reply
ergy1983
Posts: 1
Joined: Sat Jan 16, 2016 3:06 pm

Commenting in Texniccenter like in word?

Post by ergy1983 »

Hello,

I have a question. I know how to iclude normal comments in latex, but of course they don't appear in the PDF. So is there somethign like the comments-function of word?

Thanks for any suggestion,
Ergy

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
Stefan Kottwitz
Site Admin
Posts: 10290
Joined: Mon Mar 10, 2008 9:44 pm

Commenting in Texniccenter like in word?

Post by Stefan Kottwitz »

Hi Ergy,

welcome to the forum!

That's easily possible using the pdfcomment package. Here is an example from my LaTeX Cookbook:

Code: Select all

\documentclass[paper=a4,oneside,fontsize=12pt,
  parskip=full]{scrartcl}
\usepackage[svgnames]{xcolor}
\usepackage[author={Stefan Kottwitz},icon=Note,color=Yellow,open=true,final]{pdfcomment}
\begin{document}
%\tableofcontents
\addsec{Introduction}
This document will be our starting point for simple
documents. It is suitable for a single page or up to
a couple of dozen pages.
\pdfcomment{Simple documents don't have chapters.}

The text will be divided into \pdfmarkupcomment{sections}{You could additionally use subsections.}.
\section{The first section}
This first text will contain
\begin{pdfsidelinecomment}[color=Red]{A bulleted list}
\begin{itemize}
\item a table of contents,
\item a bulleted list,
\item headings and some text and math in section,
\item referencing such as to section \ref{sec:maths} and
      equation (\ref{eq:integral}).
\end{itemize}
\end{pdfsidelinecomment}
We can use this document as a template for filling in
our own content.
\section{Some maths}
\label{sec:maths}
When we write a scientific or technical document, we usually
include math \pdftooltip{formulas}{Formulas can be inline or displayed in their own paragraph}. To get a brief glimpse of the look of
maths, we will look at an integral approximation of a function
$f(x)$ as a sum with weights $w_i$:
\begin{equation}
  \pdfmargincomment{The equation environment produces a centered
  equation with whitespace before and after it.}
  \label{eq:integral}
  \int_a^b \pdfmarkupcomment{f(x)}{This function will be approximated.}\,\mathrm{d}x \approx (b-a)
  \sum_{i=0}^n \pdfmarkupcomment{w_i}{Those are the weights} f(x_i)
\end{equation}
\pdffreetextcomment[subject={Summary},width=7.5cm,height=2.2cm,opacity=0.5,voffset=-3cm]{The whole document is an example
showing how to write a small document.
Now we enriched it with sample comments.}
\end{document}
Just a quick post, try it out. The book explains more, or ask here,

Stefan
LaTeX.org admin
Post Reply