I have been struggling to understand my latex preamble. I have listed my preamble below for others to see.
MWE
\documentclass[12pt, titlepage, oneside, a4paper]{report}
\usepackage[T1]{fontenc}
\usepackage[bitstream-charter]{mathdesign}
\usepackage[titletoc]{appendix}
\usepackage[utf8]{inputenc}
\usepackage{amssymb, graphicx, fancyhdr}
\usepackage{amsmath}
\usepackage{amsthm,algorithm,algorithmic,yhmath,enumitem,lscape}
\usepackage{subcaption}
\usepackage[mathscr]{euscript}
\DeclareMathAlphabet{\mathcal}{OMS}{cmsy}{m}{n}
\usepackage{float}
\usepackage{chngcntr}
\begin{document}
$\mathcal{L}$
\end{document}
My questions are:
Question 1: Using the package chngcntr should allow me to reset my counter using the command
\counterwithin*{equation}{chapter}
However, it does not do anything. I have to manually set counter to zero after every chapter.
Question 2: I want mathcal{} to have a certain format. Something like you have in \usepackage[mathscr]{euscript} or similar but even if I put this in preamble it does not do anything and I have the bad-looking \mathrsfs kind of thing. Additionally, I tried manually setting it using the command given in this link but I get conflict statement saying \mathcal is already defined**. How can I get this to work?
Added Information: As for the chngcntr package, I found that a newcommand added to preamble was causing a problem. Removing this and using a regular \chapter{} command indeed sets it according to chapter. But I need it because I do not want to see Chapter # written on top all the time. I would also like to understand the reason behind the problem.
\newcommand{\mychapter}[2]{
\setcounter{chapter}{#1}
\setcounter{section}{0}
\chapter*{#2}
\addcontentsline{toc}{chapter}{#2}}
\counterwithin*issue. – Jul 05 '16 at 09:40