Define an environment that by default uses an optional argument Announcing the arrival of...

Can I throw a longsword at someone?

What's the point in a preamp?

Did the new image of black hole confirm the general theory of relativity?

How many things? AとBがふたつ

What would be Julian Assange's expected punishment, on the current English criminal law?

Was credit for the black hole image misattributed?

Cauchy Sequence Characterized only By Directly Neighbouring Sequence Members

Stars Make Stars

Autumning in love

The following signatures were invalid: EXPKEYSIG 1397BC53640DB551

How to politely respond to generic emails requesting a PhD/job in my lab? Without wasting too much time

I'm having difficulty getting my players to do stuff in a sandbox campaign

Can a zero nonce be safely used with AES-GCM if the key is random and never used again?

Why don't the Weasley twins use magic outside of school if the Trace can only find the location of spells cast?

Is 1 ppb equal to 1 μg/kg?

Single author papers against my advisor's will?

Stopping real property loss from eroding embankment

What do I do if technical issues prevent me from filing my return on time?

Slither Like a Snake

Why is there no army of Iron-Mans in the MCU?

Why use gamma over alpha radiation?

How does the Nova's Burn power work at the 7-9 level?

Simulating Exploding Dice

Can I add database to AWS RDS MySQL without creating new instance?



Define an environment that by default uses an optional argument



Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)












0















Is there a way to define a new environment, and make this environment take an optional argument by default?



Specifically, I am hoping to define a new environment, say myenv, such that it automatically expands to



begin{lstlisting}[language = Java , frame = trBL , escapeinside={(*@}{@*)}, escapechar=%]
end{lstlisting}



Is there a way to achieve this?



Thank you!









share







New contributor




aswei is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

























    0















    Is there a way to define a new environment, and make this environment take an optional argument by default?



    Specifically, I am hoping to define a new environment, say myenv, such that it automatically expands to



    begin{lstlisting}[language = Java , frame = trBL , escapeinside={(*@}{@*)}, escapechar=%]
    end{lstlisting}



    Is there a way to achieve this?



    Thank you!









    share







    New contributor




    aswei is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.























      0












      0








      0








      Is there a way to define a new environment, and make this environment take an optional argument by default?



      Specifically, I am hoping to define a new environment, say myenv, such that it automatically expands to



      begin{lstlisting}[language = Java , frame = trBL , escapeinside={(*@}{@*)}, escapechar=%]
      end{lstlisting}



      Is there a way to achieve this?



      Thank you!









      share







      New contributor




      aswei is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.












      Is there a way to define a new environment, and make this environment take an optional argument by default?



      Specifically, I am hoping to define a new environment, say myenv, such that it automatically expands to



      begin{lstlisting}[language = Java , frame = trBL , escapeinside={(*@}{@*)}, escapechar=%]
      end{lstlisting}



      Is there a way to achieve this?



      Thank you!







      listings environments





      share







      New contributor




      aswei is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.










      share







      New contributor




      aswei is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.








      share



      share






      New contributor




      aswei is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked 1 min ago









      asweiaswei

      11




      11




      New contributor




      aswei is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      aswei is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      aswei is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






















          0






          active

          oldest

          votes












          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "85"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });






          aswei is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f484888%2fdefine-an-environment-that-by-default-uses-an-optional-argument%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          aswei is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          aswei is a new contributor. Be nice, and check out our Code of Conduct.













          aswei is a new contributor. Be nice, and check out our Code of Conduct.












          aswei is a new contributor. Be nice, and check out our Code of Conduct.
















          Thanks for contributing an answer to TeX - LaTeX Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f484888%2fdefine-an-environment-that-by-default-uses-an-optional-argument%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Can't compile dgruyter and caption packagesLaTeX templates/packages for writing a patent specificationLatex...

          Schneeberg (Smreczany) Bibliografia | Menu...

          Hans Bellmer Spis treści Życiorys | Upamiętnienie | Przypisy | Bibliografia | Linki zewnętrzne |...