ref returns both caption name and numbering

ref{key} returns caption name (as configured using captionsetup) and numbering as autoref{key} do. How can I return only numbering?

Here is my preamble with main packages and captionsetup. For instance, I get using ref{key} after compiling is “FIGURA 1.1” instead “1.1”. In another document with almost the same preamble, I get the expected result.
documentclass[12pt,letterpaper,openany]{book}
usepackage[brazil]{babel}
usepackage[utf8]{inputenc}
usepackage[T1]{fontenc}
usepackage{lmodern}
usepackage{graphicx}
usepackage[usenames,dvipsnames,svgnames,table]{xcolor}
usepackage{amsmath, amsthm, amssymb, amsfonts}
usepackage[hidelinks]{hyperref}
usepackage{chngcntr}
usepackage{tabto}
usepackage{extsizes}
usepackage{mathptmx}
usepackage{chemformula}
usepackage{chemarrow}
usepackage{shadow}
usepackage{microtype}
usepackage{multicol}
usepackage{chemfig}
usepackage{chemmacros}
usepackage[shortlabels]{enumitem}
usepackage{sectsty}
usepackage{floatrow}
usepackage{tabu}
usepackage{subfiles}
usepackage{booktabs}
usepackage{siunitx}
usepackage{chemstyle}
usepackage[version=4]{mhchem}
usepackage{cancel}
usepackage{tikz}
usetikzlibrary{calc,shadows}
usepackage{pgfplots}
pgfplotsset{table/search path={data}}
usepackage{fontspec}
usepackage{titlesec}

usepackage{caption}

newfontfamilyMProBoldCn[Mapping=tex-text, Numbers=Lining]{Minion Pro Bold Cond}

newfontfamilyMProBoldCnIt[Mapping=tex-text, Numbers=Lining]{Minion Bold Condensed Italic}
newfontfamilyRokkirrBold[Mapping=tex-text, Numbers=Lining]{Rokkitt}
newfontfamilyAcuminPro[Mapping=tex-text, Numbers=Lining]{Acumin Pro}

DeclareCaptionFont{rok}{RokkirrBold}
DeclareCaptionFont{acuminP}{AcuminPro}

definecolor{azulE1}{RGB}{0,93,171}

begin{document}

chapter{Chapter}
section{Section}

As cited in ref{test}.

begin{figure}[H]
centering
tikzdraw[red,fill=red] (0,0) circle (.5ex);
caption{Figure example.}
label{test}
end{figure}

end{document}

Word will not set the Numbering Value that I choose

I am trying to start a list with the number 1.2.1, but what ever I do, Word keeps resetting the start number to 1.1.1.

I’m selecting the list, right clicking, going to ‘Numbering -> Set Numbering Value’ and then sleecting ‘Continue from previous list’ and ticking ‘Advance value (skip numbers)’. Word correctly shows me 3 boxes, and it will let me change the list to 1.2.x, or x.2.x (so long as ‘x’ is not equal to ‘1’), but setting the boxes to 1.2.1 and clicking ‘OK’ doesn’t change the numbering.

I’ve tried a fresh document, just in case this is some kind of corruption, but that gives the same results.

Is this a known bug with Word? And if so, is there a work around, as this is messing up my document numbering. Thanks.

I need a connect the dots numbering illustrator script [duplicate]

This question already has an answer here:

  • How to add numbers to Adobe Illustrator anchor points?

    1 answer

You know the “connect the dots” books for children where you connect the dots from 1 to 100 to make picture. I need a script to add numbers to anchor points.

MS Word: Numbering paragraphs on the OUTER edge of pages

I managed to create a style which continually numbers paragraphs, looking as follows:

enter image description here

What I want, however, is that the paragraph numbers always appear on the outer edge, i.e., the numbers 12 to 14 should appear on the right edge instead of at the left edge like the previous page.

Is such a numbering style even possible?

(Using MS Word 2019 Professional)

Title page should be counted/increment but must not display page numbering on title?

I’m facing an interesting question about the numbering and counting of the pages. Here is how my article should look like in terms of page numberging :

Title page : count for page 1, but not numbered
Abstract and so on : count for page 2+, numbered in roman II, III, etc,
Main part : count start again on page 1, numbered in arabic 1, 2, 3, etc

So my MWE is working fine, it uses the titlepage environment to create a custom title. The pagenumbering commands are fine for switching the type of numerbing.

This difficult part was to actually make the titlepage count as a “page 1”. I manage to do this by artificially incrementing the counter on page.

My questions :

  • Does the pagenumbering always reset the page count ?
  • Is the incrementation of the counter (relatively) safe to do ?
  • Isn’t there a cleaner was to achieve the same results ?

Here is my MWE code :

documentclass[12pt,a4paper]{article}

usepackage[utf8]{inputenc}
usepackage{lipsum}

newcommand{CustomTitle}{%
    begin{titlepage} % Start of page
    Huge{A Title}
    end{titlepage}
}

begin{document}
% title
CustomTitle%
% addtocounter{page}{1} % <- artificially increment counter
clearpage%
% Front matter
pagenumbering{Roman}
section*{a dummy abstract}
lipsum[11]
clearpage
section*{a dummy executive summary}
lipsum[4]
clearpage
section*{another dummy frontmatter}
clearpage%
% Main
pagenumbering{arabic}
section{Introduction}
lipsum[4-12]clearpage

section{Section 1}
lipsum[13-23]clearpage
end{document}

Update 22/08/2019

Actually, there was a similar issue on Tex.SE. I'll go through the answers already provided

Consecutive Numbering in Theorem Enviroments, inside framed boxes

I want to write propositions, lemmas, theorems,
corollaries inside the chosen boxes and definitions NOT inside boxes, all of them with consecutive numbering. I searched for similar post and I found things, but all were without boxes.
So,

1) Any ideas to fix this issue?

2) Is there a way to write “theorem 1.0.1” instead of “1.0.1 theorem” in these boxes?

Example: Theorem 1.0.1, Definition 1.0.2. Lemma 1.0.3, Definition 1.0.4,…

documentclass[10pt,a4paper]{book}
usepackage{tcolorbox}
tcbuselibrary{theorems}
tcbuselibrary{skins}
usepackage[english,greek]{babel}
renewcommand{rmdefault}{udidot}

newtcbtheorem[number within=section]{thm}{Θεώρημα}{
  theorem style=change apart,
  enhanced jigsaw,% <--- jigsaw
  sharp corners,
  boxrule=0pt,
  toprule=1pt,bottomrule=1pt,
  left=0.2cm,right=0.2cm,top=0.2cm,
  titlerule=0.5em,
  toptitle=0.1cm,
  bottomtitle=-0.1cm,
  colframe=white!25!black,colback=white,coltitle=white,
  %title style={white!25!black},   & <---- remove
  fonttitle=bfseries,fontupper=normalsize}{thm}

  newtcbtheorem[number within=thm]{prop}{Πρόταση}{
  theorem style=change apart,
  enhanced jigsaw,% <--- jigsaw
  sharp corners,
  boxrule=0pt,
  toprule=1pt,bottomrule=1pt,
  left=0.2cm,right=0.2cm,top=0.2cm,
  titlerule=0.5em,
  toptitle=0.1cm,
  bottomtitle=-0.1cm,
  colframe=white!25!black,colback=white,coltitle=white,
  %title style={white!25!black},   & <---- remove
  fonttitle=bfseries,fontupper=normalsize}{prop}

begin{document}
chapter{Hi}
begin{thm}{greektext Stokes}{stokes}
Let $D$ be a regular domain in an oriented $n$-dimensional manifold $M$,
and let $omega$ be a smooth $(n-1)$ form of compact support. Then
[int_D domega = int_{partial D} omega.] greektext Και δηλαδή τι άλλα;
end{thm}

begin{prop}{}{}
sdfasdasdasd
end{prop}

end{document}

Consecutive Numbering in Theorem Inviroments, inside framed boxes

I want to write propositions, lemmas, theorems,
corollaries inside the chosen boxes and definitions NOT inside boxes, all of them with consecutive numbering. I searched for similar post and I found things, but all were without boxes.
So,

1) Any ideas to fix this issue?

2) Is there a way to write “theorem 1.0.1” instead of “1.0.1 theorem” in these boxes?

Example: Theorem 1.0.1, Definition 1.0.2. Lemma 1.0.3, Definition 1.0.4,…

documentclass[10pt,a4paper]{book}
usepackage{tcolorbox}
tcbuselibrary{theorems}
tcbuselibrary{skins}
usepackage[english,greek]{babel}
renewcommand{rmdefault}{udidot}

newtcbtheorem[number within=section]{thm}{Θεώρημα}{
  theorem style=change apart,
  enhanced jigsaw,% <--- jigsaw
  sharp corners,
  boxrule=0pt,
  toprule=1pt,bottomrule=1pt,
  left=0.2cm,right=0.2cm,top=0.2cm,
  titlerule=0.5em,
  toptitle=0.1cm,
  bottomtitle=-0.1cm,
  colframe=white!25!black,colback=white,coltitle=white,
  %title style={white!25!black},   & <---- remove
  fonttitle=bfseries,fontupper=normalsize}{thm}

  newtcbtheorem[number within=thm]{prop}{Πρόταση}{
  theorem style=change apart,
  enhanced jigsaw,% <--- jigsaw
  sharp corners,
  boxrule=0pt,
  toprule=1pt,bottomrule=1pt,
  left=0.2cm,right=0.2cm,top=0.2cm,
  titlerule=0.5em,
  toptitle=0.1cm,
  bottomtitle=-0.1cm,
  colframe=white!25!black,colback=white,coltitle=white,
  %title style={white!25!black},   & <---- remove
  fonttitle=bfseries,fontupper=normalsize}{prop}

begin{document}
chapter{Hi}
begin{thm}{greektext Stokes}{stokes}
Let $D$ be a regular domain in an oriented $n$-dimensional manifold $M$,
and let $omega$ be a smooth $(n-1)$ form of compact support. Then
[int_D domega = int_{partial D} omega.] greektext Και δηλαδή τι άλλα;
end{thm}

begin{prop}{}{}
sdfasdasdasd
end{prop}

end{document}

Consecutive Numbering in Theorems, Def, etc inside framed boxes

I want to write propositions, lemmas, theorems,
corollaries inside the chosen boxes and definitions NOT inside boxes, all of them with consecutive numbering. I searched for similar post and I found things, but all were without boxes.
So,

1) Any ideas to fix this issue?

2) Is there a way to write “theorem 1.0.1” instead of “1.0.1 theorem” in these boxes?

Example: Theorem 1.0.1, Definition 1.0.2. Lemma 1.0.3, Definition 1.0.4,…

documentclass[10pt,a4paper]{book}
usepackage{tcolorbox}
tcbuselibrary{theorems}
tcbuselibrary{skins}
usepackage[english,greek]{babel}
renewcommand{rmdefault}{udidot}

newtcbtheorem[number within=section]{thm}{Θεώρημα}{
  theorem style=change apart,
  enhanced jigsaw,% <--- jigsaw
  sharp corners,
  boxrule=0pt,
  toprule=1pt,bottomrule=1pt,
  left=0.2cm,right=0.2cm,top=0.2cm,
  titlerule=0.5em,
  toptitle=0.1cm,
  bottomtitle=-0.1cm,
  colframe=white!25!black,colback=white,coltitle=white,
  %title style={white!25!black},   & <---- remove
  fonttitle=bfseries,fontupper=normalsize}{thm}

  newtcbtheorem[number within=thm]{prop}{Πρόταση}{
  theorem style=change apart,
  enhanced jigsaw,% <--- jigsaw
  sharp corners,
  boxrule=0pt,
  toprule=1pt,bottomrule=1pt,
  left=0.2cm,right=0.2cm,top=0.2cm,
  titlerule=0.5em,
  toptitle=0.1cm,
  bottomtitle=-0.1cm,
  colframe=white!25!black,colback=white,coltitle=white,
  %title style={white!25!black},   & <---- remove
  fonttitle=bfseries,fontupper=normalsize}{prop}

begin{document}
chapter{Hi}
begin{thm}{greektext Stokes}{stokes}
Let $D$ be a regular domain in an oriented $n$-dimensional manifold $M$,
and let $omega$ be a smooth $(n-1)$ form of compact support. Then
[int_D domega = int_{partial D} omega.] greektext Και δηλαδή τι άλλα;
end{thm}

begin{prop}{}{}
sdfasdasdasd
end{prop}

end{document}

Make a holiday calendar with automatic “school week numbering” in tikz

I am trying to make a two sided holiday calendar (DIN A4, two pages for one school year). For this I started with an example from Robert Krause and tried to modify it. Here is how it looks so far:

% DIN-A4 doublesided year calendar
% Author: Robert Krause
% License : Creative Commons attribution license
% Submitted to TeXample.net on 13 July 2018

% Modified by julia 2018

documentclass[a4paper, ngerman, 10pt]{scrartcl}
usepackage[utf8]{inputenc}
usepackage[ngerman]{babel}
usepackage[T1]{fontenc}
usepackage{tikz,xparse}            % Use the calendar.sty style

usepackage{translator} % German Month and Day names
usepackage{fancyhdr}       % header and footer
usepackage{fix-cm}     % Large year in header

usepackage[ headheight = 0.8cm, hmargin=.5cm,
  top = 1.7cm, nofoot,bottom=0cm]{geometry}
usetikzlibrary{calc}
usetikzlibrary{calendar}
renewcommand*familydefault{sfdefault}


makeatletter
longdefifnodedefined#1#2#3{%
    @ifundefined{pgf@sh@ns@#1}{#3}{#2}%
}
makeatother

% Names of Holidays are inserted by employing this macro
deftermin#1#2{
  ifnodedefined{cal-#1}{
  node [anchor=north west, text width= 3.4cm] at
  ($(cal-#1.north west)+(3em, 0em)$) {tiny{#2}};
  }{}
}


newcounter{week}
setcounter{week}{1}
newcommandwoche[2]{
  node [anchor=north east, align=right] at
    ($(#1.north east)+(0em, 0em)$) {tiny{SW #2}.};}


newcommand{holidays}{
between=2018-10-29 and 2018-11-04,
between=2019-02-28 and 2019-02-28,
between=2019-03-01 and 2019-03-08,
between=2019-04-15 and 2019-04-26,
between=2019-06-10 and 2019-06-02,
between=2019-07-29 and 2019-09-01,
}

%Header
renewcommand{headrulewidth}{0.0pt}
setlength{headheight}{0.8cm}
chead{
 Huge 2018/2019
 Largetextbf{Termine}hfill
}
cfoot{}

newcommand{kheight}{0.82}
newcommand{kwidth}{3.0}
newcommand{kshift}{3.4}
newcommand{calstartdate}{2018-09-10}

newcommand{kal}[2]{
vspace*{-1cm}
begin{tikzpicture}[every day/.style={anchor = north}]
calendar[
  dates=#1,
  name=cal,
  day yshift = 3em,
  day code=
  {
    node[name=pgfcalendarsuggestedname,every day,shape=rectangle,
    minimum height= kheight cm, text width = kwidth cm, draw =
    gray]{tikzdaytext enskip
      pgfcalendarweekdayshortname{pgfcalendarcurrentweekday}};
    ifdate{Monday}{          
    }{}
  },
  execute before day scope=
  {
    ifdate{day of month=1}
    {
      % Shift right
      pgftransformxshift{kshift cm}
      % Print month name 
      draw (0,0)node [shape=rectangle, minimum height= kheight cm,
      text width = kwidth cm, fill = red, text= white, draw = red, text centered]
      {textbf{pgfcalendarmonthname{pgfcalendarcurrentmonth}}};
    }{}
    ifdate{workday}
    {
      % normal days are white
      tikzset{every day/.style={fill=white}}
      % Vacation (Germany, Baden-Wuerrtemberg) gray background
      ifdate{#2}{%
        tikzset{every day/.style={fill=gray!30}}
      }{}
    }{}
    % Saturdays and half holidays (Christma's and New year's eve)
    ifdate{Saturday}{tikzset{every day/.style={fill=red!10}}}{}
    % % Sundays and full holidays
    ifdate{Sunday}{tikzset{every day/.style={fill=red!20}}}{}
    %Tag der Arbeit
    ifdate{equals=2018-10-03}{tikzset{every
        day/.style={fill=red!20}}}{}
    % Christi Himmelfahrt
    ifdate{equals=2019-05-30}{tikzset{every
        day/.style={fill=red!20}}}{}
  },
 execute at begin day scope=
  {
    % each day is shifted down according to the day of month
    pgftransformyshift{-kheight*pgfcalendarcurrentday cm}
  }
  ];
  % % Some Dates
  termin{2018-10-03}{Tag der dt. Einheit}
  termin{2019-01-01}{Neujahr}
  termin{2019-01-06}{Heilige Drei Könige}
  termin{2019-04-19}{Karfreitag}
  termin{2019-04-21}{Ostersonntag}
  termin{2019-04-22}{Ostermontag}
  termin{2019-05-01}{Tag der Arbeit}
  termin{2019-05-30}{Christi Himmelfahrt}
  termin{2019-06-09}{Pfingstsonntag}
  termin{2019-06-20}{Pfingstmontag}

end{tikzpicture}
}

begin{document}
pagestyle{fancy}
begin{center}
kal{2018-09-10 to 2019-02-28}{
  between=2018-10-03 and 2018-10-05,
  between=2018-10-29 and 2018-11-04,
  between=2019-02-28 and 2019-02-28,
  between=2019-03-01 and 2019-03-08,
  between=2019-04-15 and 2019-04-26,
  between=2019-06-10 and 2019-06-02,
  between=2019-07-29 and 2019-09-01,
}
kal{2019-03-01 to 2019-08-30}{
  between=2018-10-03 and 2018-10-05,
  between=2018-10-29 and 2018-11-04,
  between=2019-02-28 and 2019-02-28,
  between=2019-03-01 and 2019-03-08,
  between=2019-04-15 and 2019-04-26,
  between=2019-06-10 and 2019-06-02,
  between=2019-07-29 and 2019-09-01,
}
pagebreak
%kal{2019-03-01 to 2019-08-30}{holidays}
end{center}

end{document}

There are some points where I need help:

  1. The school weeks should be numbered automatically, so in my example on Mo. 2018-09-10 there should be a small “SW 1” in the upper right corner of the day node. In Mo. 2018-09-17 there should be “SW 2” etc, Mo. 2018-10-01 would be “SW 4” and on Mo. 2018-10-29 there should be no mark since it is in the holidays, so “SW 8” would be on Mo. 2018-11-05 (and not “SW 9” since the SW counter shouldn’t increment in the holidays).

If at least one day in a week is not a holiday day it should count as a “school week” and a particular “SW x” should be placed in the upper right corner of the first day in this week which is not a holiday day (in my example this would be always a Monday, but for a general solution it might be the case that for example Monday and Tuesday are holiday days but Wednesday, Thursday and Friday are not, in this case “SW x” should be printed on the Wednesday).

I tried the following code inside the day code, but it seems to be nonsense.

ifdate{Monday}{
       tikzset{
    loop over item/.code args={####1/####2/####3}{%
      ifdate{between=####1 and ####2}{%
      }{
        woche{pgfcalendarsuggestedname}{theweek}
        stepcounter{week}    
      }},
    loop over item/.list/.expanded=ferien
  }          
}{}

where the week command is defined as:

newcounter{week}
setcounter{week}{1}
newcommandwoche[2]{
  node [anchor=north east, align=right] at
    ($(#1.north east)+(0em, 0em)$) {tiny{SW #2}.};}
  1. The calender week number should be on each monday in the right lower corner.

  2. The code redundancy should be reduced and the syntax for giving dates and holidays simplified as much as possible, in particular I want to give the list of holidays globally in just one place and another list of special dates in another global place (instead of writing termin each time). However it should be possible to define several categories of dates (with different lists and styles).

You may have noticed that for example the date “Heilige Drei Könige” is printed on 2019-01-06 and as well in 2019-06-06 (which is wrong) since I specified the date once for both calendars. This should in particular be fixed (I know that I can fix it by duplicating the calendar code and set the date in the first part of the calendar only, but as written above I want to reduce the code redudancy and not increase it).