## LaTeX forum ⇒ Document Classes ⇒ Display something in front of an environment variable already declared

Information and discussion about specific document classes and how to create your own document classes.
shashwatss
Posts: 1
Joined: Thu Apr 26, 2018 10:24 am

### Display something in front of an environment variable already declared

hi,
i have set the environment variables for use in document. It is as follows:

I would like to display the output as "Question 1 - Circuit Input", for next question it should be "Question 2 - Cicuit Analysis".

My code for displaying the question and answers is as follows:-
<span style="font-weight: bold">\begin{homeworkProblem}</span>		%<span style="font-weight: bold">WHAT SHOULD I CHANGE IN THE ABOVE BOLD FACED TEXT TO ACHIEVE THE REQUIRED OUTPUT?</span> 		%Question 		\vspace{10pt}		%Answer		\problemAnswer		{ 			\begin{center}				\includegraphics[width=0.75\columnwidth]{pic1} % Example image			\end{center} 			\lipsum[2]		}	\end{homeworkProblem}

Kindly help. Thank you
Regards,
Shashwat

Johannes_B
Site Moderator
Posts: 4077
Joined: Thu Nov 01, 2012 4:08 pm
Can you expand your snippets into a compilable document? Right now, the snippets are less than helpful, also, there are css things intermixed.

A document we can compile is almost always a guaranty for an answer.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.