Registration and login scriptThe perfect PHP login scriptLocal user registrationUser registration and loginRegistration and Login System for ApplicationPHP secure login scriptPython + MySQL Login system using Twilio APISecured registration scriptBasic object-oriented PHP login, logout, and registration scriptsPHP script security for new user registrationPDO login script

The IT department bottlenecks progress. How should I handle this?

Added a new user on Ubuntu, set password not working?

Biological Blimps: Propulsion

How can "mimic phobia" be cured or prevented?

Aragorn's "guise" in the Orthanc Stone

Reverse int within the 32-bit signed integer range: [−2^31, 2^31 − 1]

Removing files under particular conditions (number of files, file age)

What are the purposes of autoencoders?

Symbol used to indicate indivisibility

New brakes for 90s road bike

2.8 Why are collections grayed out? How can I open them?

Is there any references on the tensor product of presentable (1-)categories?

How do you respond to a colleague from another team when they're wrongly expecting that you'll help them?

L1 and Ln cache: when are they written?

How did Rebekah know that Esau was planning to kill his brother in Genesis 27:42?

Is this toilet slogan correct usage of the English language?

How to indicate a cut out for a product window

The Staircase of Paint

Does a 'pending' US visa application constitute a denial?

How can Trident be so inexpensive? Will it orbit Triton or just do a (slow) flyby?

How should I respond when I lied about my education and the company finds out through background check?

Non-trope happy ending?

Problem with TransformedDistribution

Is it improper etiquette to ask your opponent what his/her rating is before the game?



Registration and login script


The perfect PHP login scriptLocal user registrationUser registration and loginRegistration and Login System for ApplicationPHP secure login scriptPython + MySQL Login system using Twilio APISecured registration scriptBasic object-oriented PHP login, logout, and registration scriptsPHP script security for new user registrationPDO login script













1












$begingroup$


This is a registration and login script I have made in Python 3. It uses a MySQL database. In the future I might use it with my Blackjack game and add a row called money, but for now I would like to hear your opinion about this script since I have little to no experience in SQL.



import cymysql
from getpass import getpass


def get_user_info():
while True:
email = input("Input your Email address (max. 64 chars.): ")
password = getpass("Input a password (max. 64 chars.): ")
if len(email) < 64 and len(password) < 64:
return email, password


def register(cur, email, password):
cur.execute("INSERT INTO `users` (`Email`, `Password`) VALUES (%s, %s)", (email, password))
print("You've succesfully registered!")


def login(cur, email, password):
cur.execute("SELECT * FROM `users` WHERE `Email`=%s AND `Password`=%s LIMIT 1", (email, password))
rows = cur.fetchall()
if rows:
print("You've succesfully logged-in!")
else:
print("You failed logging-in!")


def check_account(cur, email):
cur.execute("SELECT * FROM `users` WHERE `Email`=%s LIMIT 1", (email,))
row = cur.fetchone()
return row


def main():
conn = cymysql.connect(
host='127.0.0.1',
user='root',
passwd='',
db='david'
)
cur = conn.cursor()
email = ''
password = ''
email, password = get_user_info()
check = check_account(cur, email)
if check:
login(cur, email, password)
else:
register(cur, email, password)
cur.close()
conn.close()


if __name__ == '__main__':
main()









share|improve this question











$endgroup$
















    1












    $begingroup$


    This is a registration and login script I have made in Python 3. It uses a MySQL database. In the future I might use it with my Blackjack game and add a row called money, but for now I would like to hear your opinion about this script since I have little to no experience in SQL.



    import cymysql
    from getpass import getpass


    def get_user_info():
    while True:
    email = input("Input your Email address (max. 64 chars.): ")
    password = getpass("Input a password (max. 64 chars.): ")
    if len(email) < 64 and len(password) < 64:
    return email, password


    def register(cur, email, password):
    cur.execute("INSERT INTO `users` (`Email`, `Password`) VALUES (%s, %s)", (email, password))
    print("You've succesfully registered!")


    def login(cur, email, password):
    cur.execute("SELECT * FROM `users` WHERE `Email`=%s AND `Password`=%s LIMIT 1", (email, password))
    rows = cur.fetchall()
    if rows:
    print("You've succesfully logged-in!")
    else:
    print("You failed logging-in!")


    def check_account(cur, email):
    cur.execute("SELECT * FROM `users` WHERE `Email`=%s LIMIT 1", (email,))
    row = cur.fetchone()
    return row


    def main():
    conn = cymysql.connect(
    host='127.0.0.1',
    user='root',
    passwd='',
    db='david'
    )
    cur = conn.cursor()
    email = ''
    password = ''
    email, password = get_user_info()
    check = check_account(cur, email)
    if check:
    login(cur, email, password)
    else:
    register(cur, email, password)
    cur.close()
    conn.close()


    if __name__ == '__main__':
    main()









    share|improve this question











    $endgroup$














      1












      1








      1


      1



      $begingroup$


      This is a registration and login script I have made in Python 3. It uses a MySQL database. In the future I might use it with my Blackjack game and add a row called money, but for now I would like to hear your opinion about this script since I have little to no experience in SQL.



      import cymysql
      from getpass import getpass


      def get_user_info():
      while True:
      email = input("Input your Email address (max. 64 chars.): ")
      password = getpass("Input a password (max. 64 chars.): ")
      if len(email) < 64 and len(password) < 64:
      return email, password


      def register(cur, email, password):
      cur.execute("INSERT INTO `users` (`Email`, `Password`) VALUES (%s, %s)", (email, password))
      print("You've succesfully registered!")


      def login(cur, email, password):
      cur.execute("SELECT * FROM `users` WHERE `Email`=%s AND `Password`=%s LIMIT 1", (email, password))
      rows = cur.fetchall()
      if rows:
      print("You've succesfully logged-in!")
      else:
      print("You failed logging-in!")


      def check_account(cur, email):
      cur.execute("SELECT * FROM `users` WHERE `Email`=%s LIMIT 1", (email,))
      row = cur.fetchone()
      return row


      def main():
      conn = cymysql.connect(
      host='127.0.0.1',
      user='root',
      passwd='',
      db='david'
      )
      cur = conn.cursor()
      email = ''
      password = ''
      email, password = get_user_info()
      check = check_account(cur, email)
      if check:
      login(cur, email, password)
      else:
      register(cur, email, password)
      cur.close()
      conn.close()


      if __name__ == '__main__':
      main()









      share|improve this question











      $endgroup$




      This is a registration and login script I have made in Python 3. It uses a MySQL database. In the future I might use it with my Blackjack game and add a row called money, but for now I would like to hear your opinion about this script since I have little to no experience in SQL.



      import cymysql
      from getpass import getpass


      def get_user_info():
      while True:
      email = input("Input your Email address (max. 64 chars.): ")
      password = getpass("Input a password (max. 64 chars.): ")
      if len(email) < 64 and len(password) < 64:
      return email, password


      def register(cur, email, password):
      cur.execute("INSERT INTO `users` (`Email`, `Password`) VALUES (%s, %s)", (email, password))
      print("You've succesfully registered!")


      def login(cur, email, password):
      cur.execute("SELECT * FROM `users` WHERE `Email`=%s AND `Password`=%s LIMIT 1", (email, password))
      rows = cur.fetchall()
      if rows:
      print("You've succesfully logged-in!")
      else:
      print("You failed logging-in!")


      def check_account(cur, email):
      cur.execute("SELECT * FROM `users` WHERE `Email`=%s LIMIT 1", (email,))
      row = cur.fetchone()
      return row


      def main():
      conn = cymysql.connect(
      host='127.0.0.1',
      user='root',
      passwd='',
      db='david'
      )
      cur = conn.cursor()
      email = ''
      password = ''
      email, password = get_user_info()
      check = check_account(cur, email)
      if check:
      login(cur, email, password)
      else:
      register(cur, email, password)
      cur.close()
      conn.close()


      if __name__ == '__main__':
      main()






      python python-3.x sql mysql






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited 4 hours ago









      esote

      2,83111038




      2,83111038










      asked 4 hours ago









      Maria LauraMaria Laura

      914




      914




















          1 Answer
          1






          active

          oldest

          votes


















          2












          $begingroup$


          1. cymysql.connect is a context manager and so you should use it in a with statement.


          2. conn.cursor isn't a context manager. Which is very fishy, even more so that the original version of cymysql, pymysql, is.

          3. Seperate SQL interactions from UI interactions. This is as multiple parts of the UI may need to use the same SQL interactions, however since they're mangled, it'll lead to code duplication or errors in your UI.

          4. You don't need to do email = '', if you want to tell people it's a string then you can do email: str. A better thing to do however is use typing and make your code fully typed.

          5. You may want to verify that the email is a valid email address. It doesn't look like your SQL does that, but I don't know enough about it.

          import cymysql
          from getpass import getpass


          def get_user_info():
          while True:
          email = input("Input your Email address (max. 64 chars.): ")
          password = getpass("Input a password (max. 64 chars.): ")
          if len(email) < 64 and len(password) < 64:
          return email, password


          def register(cur, email, password):
          cur.execute("INSERT INTO `users` (`Email`, `Password`) VALUES (%s, %s)", (email, password))


          def login(cur, email, password):
          cur.execute("SELECT * FROM `users` WHERE `Email`=%s AND `Password`=%s LIMIT 1", (email, password))
          return bool(cur.fetchall())


          def check_account(cur, email):
          cur.execute("SELECT * FROM `users` WHERE `Email`=%s LIMIT 1", (email,))
          return bool(cur.fetchone())


          def main():
          conn = cymysql.connect(
          host='127.0.0.1',
          user='root',
          passwd='',
          db='david'
          )
          with conn:
          cur = conn.cursor()
          email, password = get_user_info()
          check = check_account(cur, email)
          if check:
          loggedin = login(cur, email, password)
          if loggedin:
          print("You've succesfully logged-in!")
          else:
          print("You failed logging-in!")
          else:
          register(cur, email, password)
          print("You've succesfully registered!")
          cur.close()


          if __name__ == '__main__':
          main()





          share|improve this answer









          $endgroup$












          • $begingroup$
            Hey! Thanks for the answer, but in my original script I have conn.close() at the end of main(). Should I use it in the updated script too?
            $endgroup$
            – Maria Laura
            3 hours ago










          • $begingroup$
            @MariaLaura You're not guarantee to reach the conn.close() - If I raise a keyboard interrupt, or kill the script does conn.close() run your way?
            $endgroup$
            – Peilonrayz
            3 hours ago










          Your Answer





          StackExchange.ifUsing("editor", function ()
          return StackExchange.using("mathjaxEditing", function ()
          StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix)
          StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["\$", "\$"]]);
          );
          );
          , "mathjax-editing");

          StackExchange.ifUsing("editor", function ()
          StackExchange.using("externalEditor", function ()
          StackExchange.using("snippets", function ()
          StackExchange.snippets.init();
          );
          );
          , "code-snippets");

          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "196"
          ;
          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
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fcodereview.stackexchange.com%2fquestions%2f216065%2fregistration-and-login-script%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          2












          $begingroup$


          1. cymysql.connect is a context manager and so you should use it in a with statement.


          2. conn.cursor isn't a context manager. Which is very fishy, even more so that the original version of cymysql, pymysql, is.

          3. Seperate SQL interactions from UI interactions. This is as multiple parts of the UI may need to use the same SQL interactions, however since they're mangled, it'll lead to code duplication or errors in your UI.

          4. You don't need to do email = '', if you want to tell people it's a string then you can do email: str. A better thing to do however is use typing and make your code fully typed.

          5. You may want to verify that the email is a valid email address. It doesn't look like your SQL does that, but I don't know enough about it.

          import cymysql
          from getpass import getpass


          def get_user_info():
          while True:
          email = input("Input your Email address (max. 64 chars.): ")
          password = getpass("Input a password (max. 64 chars.): ")
          if len(email) < 64 and len(password) < 64:
          return email, password


          def register(cur, email, password):
          cur.execute("INSERT INTO `users` (`Email`, `Password`) VALUES (%s, %s)", (email, password))


          def login(cur, email, password):
          cur.execute("SELECT * FROM `users` WHERE `Email`=%s AND `Password`=%s LIMIT 1", (email, password))
          return bool(cur.fetchall())


          def check_account(cur, email):
          cur.execute("SELECT * FROM `users` WHERE `Email`=%s LIMIT 1", (email,))
          return bool(cur.fetchone())


          def main():
          conn = cymysql.connect(
          host='127.0.0.1',
          user='root',
          passwd='',
          db='david'
          )
          with conn:
          cur = conn.cursor()
          email, password = get_user_info()
          check = check_account(cur, email)
          if check:
          loggedin = login(cur, email, password)
          if loggedin:
          print("You've succesfully logged-in!")
          else:
          print("You failed logging-in!")
          else:
          register(cur, email, password)
          print("You've succesfully registered!")
          cur.close()


          if __name__ == '__main__':
          main()





          share|improve this answer









          $endgroup$












          • $begingroup$
            Hey! Thanks for the answer, but in my original script I have conn.close() at the end of main(). Should I use it in the updated script too?
            $endgroup$
            – Maria Laura
            3 hours ago










          • $begingroup$
            @MariaLaura You're not guarantee to reach the conn.close() - If I raise a keyboard interrupt, or kill the script does conn.close() run your way?
            $endgroup$
            – Peilonrayz
            3 hours ago















          2












          $begingroup$


          1. cymysql.connect is a context manager and so you should use it in a with statement.


          2. conn.cursor isn't a context manager. Which is very fishy, even more so that the original version of cymysql, pymysql, is.

          3. Seperate SQL interactions from UI interactions. This is as multiple parts of the UI may need to use the same SQL interactions, however since they're mangled, it'll lead to code duplication or errors in your UI.

          4. You don't need to do email = '', if you want to tell people it's a string then you can do email: str. A better thing to do however is use typing and make your code fully typed.

          5. You may want to verify that the email is a valid email address. It doesn't look like your SQL does that, but I don't know enough about it.

          import cymysql
          from getpass import getpass


          def get_user_info():
          while True:
          email = input("Input your Email address (max. 64 chars.): ")
          password = getpass("Input a password (max. 64 chars.): ")
          if len(email) < 64 and len(password) < 64:
          return email, password


          def register(cur, email, password):
          cur.execute("INSERT INTO `users` (`Email`, `Password`) VALUES (%s, %s)", (email, password))


          def login(cur, email, password):
          cur.execute("SELECT * FROM `users` WHERE `Email`=%s AND `Password`=%s LIMIT 1", (email, password))
          return bool(cur.fetchall())


          def check_account(cur, email):
          cur.execute("SELECT * FROM `users` WHERE `Email`=%s LIMIT 1", (email,))
          return bool(cur.fetchone())


          def main():
          conn = cymysql.connect(
          host='127.0.0.1',
          user='root',
          passwd='',
          db='david'
          )
          with conn:
          cur = conn.cursor()
          email, password = get_user_info()
          check = check_account(cur, email)
          if check:
          loggedin = login(cur, email, password)
          if loggedin:
          print("You've succesfully logged-in!")
          else:
          print("You failed logging-in!")
          else:
          register(cur, email, password)
          print("You've succesfully registered!")
          cur.close()


          if __name__ == '__main__':
          main()





          share|improve this answer









          $endgroup$












          • $begingroup$
            Hey! Thanks for the answer, but in my original script I have conn.close() at the end of main(). Should I use it in the updated script too?
            $endgroup$
            – Maria Laura
            3 hours ago










          • $begingroup$
            @MariaLaura You're not guarantee to reach the conn.close() - If I raise a keyboard interrupt, or kill the script does conn.close() run your way?
            $endgroup$
            – Peilonrayz
            3 hours ago













          2












          2








          2





          $begingroup$


          1. cymysql.connect is a context manager and so you should use it in a with statement.


          2. conn.cursor isn't a context manager. Which is very fishy, even more so that the original version of cymysql, pymysql, is.

          3. Seperate SQL interactions from UI interactions. This is as multiple parts of the UI may need to use the same SQL interactions, however since they're mangled, it'll lead to code duplication or errors in your UI.

          4. You don't need to do email = '', if you want to tell people it's a string then you can do email: str. A better thing to do however is use typing and make your code fully typed.

          5. You may want to verify that the email is a valid email address. It doesn't look like your SQL does that, but I don't know enough about it.

          import cymysql
          from getpass import getpass


          def get_user_info():
          while True:
          email = input("Input your Email address (max. 64 chars.): ")
          password = getpass("Input a password (max. 64 chars.): ")
          if len(email) < 64 and len(password) < 64:
          return email, password


          def register(cur, email, password):
          cur.execute("INSERT INTO `users` (`Email`, `Password`) VALUES (%s, %s)", (email, password))


          def login(cur, email, password):
          cur.execute("SELECT * FROM `users` WHERE `Email`=%s AND `Password`=%s LIMIT 1", (email, password))
          return bool(cur.fetchall())


          def check_account(cur, email):
          cur.execute("SELECT * FROM `users` WHERE `Email`=%s LIMIT 1", (email,))
          return bool(cur.fetchone())


          def main():
          conn = cymysql.connect(
          host='127.0.0.1',
          user='root',
          passwd='',
          db='david'
          )
          with conn:
          cur = conn.cursor()
          email, password = get_user_info()
          check = check_account(cur, email)
          if check:
          loggedin = login(cur, email, password)
          if loggedin:
          print("You've succesfully logged-in!")
          else:
          print("You failed logging-in!")
          else:
          register(cur, email, password)
          print("You've succesfully registered!")
          cur.close()


          if __name__ == '__main__':
          main()





          share|improve this answer









          $endgroup$




          1. cymysql.connect is a context manager and so you should use it in a with statement.


          2. conn.cursor isn't a context manager. Which is very fishy, even more so that the original version of cymysql, pymysql, is.

          3. Seperate SQL interactions from UI interactions. This is as multiple parts of the UI may need to use the same SQL interactions, however since they're mangled, it'll lead to code duplication or errors in your UI.

          4. You don't need to do email = '', if you want to tell people it's a string then you can do email: str. A better thing to do however is use typing and make your code fully typed.

          5. You may want to verify that the email is a valid email address. It doesn't look like your SQL does that, but I don't know enough about it.

          import cymysql
          from getpass import getpass


          def get_user_info():
          while True:
          email = input("Input your Email address (max. 64 chars.): ")
          password = getpass("Input a password (max. 64 chars.): ")
          if len(email) < 64 and len(password) < 64:
          return email, password


          def register(cur, email, password):
          cur.execute("INSERT INTO `users` (`Email`, `Password`) VALUES (%s, %s)", (email, password))


          def login(cur, email, password):
          cur.execute("SELECT * FROM `users` WHERE `Email`=%s AND `Password`=%s LIMIT 1", (email, password))
          return bool(cur.fetchall())


          def check_account(cur, email):
          cur.execute("SELECT * FROM `users` WHERE `Email`=%s LIMIT 1", (email,))
          return bool(cur.fetchone())


          def main():
          conn = cymysql.connect(
          host='127.0.0.1',
          user='root',
          passwd='',
          db='david'
          )
          with conn:
          cur = conn.cursor()
          email, password = get_user_info()
          check = check_account(cur, email)
          if check:
          loggedin = login(cur, email, password)
          if loggedin:
          print("You've succesfully logged-in!")
          else:
          print("You failed logging-in!")
          else:
          register(cur, email, password)
          print("You've succesfully registered!")
          cur.close()


          if __name__ == '__main__':
          main()






          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered 3 hours ago









          PeilonrayzPeilonrayz

          26.2k338110




          26.2k338110











          • $begingroup$
            Hey! Thanks for the answer, but in my original script I have conn.close() at the end of main(). Should I use it in the updated script too?
            $endgroup$
            – Maria Laura
            3 hours ago










          • $begingroup$
            @MariaLaura You're not guarantee to reach the conn.close() - If I raise a keyboard interrupt, or kill the script does conn.close() run your way?
            $endgroup$
            – Peilonrayz
            3 hours ago
















          • $begingroup$
            Hey! Thanks for the answer, but in my original script I have conn.close() at the end of main(). Should I use it in the updated script too?
            $endgroup$
            – Maria Laura
            3 hours ago










          • $begingroup$
            @MariaLaura You're not guarantee to reach the conn.close() - If I raise a keyboard interrupt, or kill the script does conn.close() run your way?
            $endgroup$
            – Peilonrayz
            3 hours ago















          $begingroup$
          Hey! Thanks for the answer, but in my original script I have conn.close() at the end of main(). Should I use it in the updated script too?
          $endgroup$
          – Maria Laura
          3 hours ago




          $begingroup$
          Hey! Thanks for the answer, but in my original script I have conn.close() at the end of main(). Should I use it in the updated script too?
          $endgroup$
          – Maria Laura
          3 hours ago












          $begingroup$
          @MariaLaura You're not guarantee to reach the conn.close() - If I raise a keyboard interrupt, or kill the script does conn.close() run your way?
          $endgroup$
          – Peilonrayz
          3 hours ago




          $begingroup$
          @MariaLaura You're not guarantee to reach the conn.close() - If I raise a keyboard interrupt, or kill the script does conn.close() run your way?
          $endgroup$
          – Peilonrayz
          3 hours ago

















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Code Review 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.

          Use MathJax to format equations. MathJax reference.


          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%2fcodereview.stackexchange.com%2fquestions%2f216065%2fregistration-and-login-script%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

          acmart: Multiple authors: all with same affiliation, one author an additional affiliationHow to Write Names of Multiple Authors with Shared Affiliation in ACM 2017 Template?Multiple authors with different primary affiliation, but same additional affiliationSame affiliation for all authors without extra packagesIOS-Book-Article.cls: one author with multiple affiliationacmart: Shared Author AffiliationMultiple authors with different primary affiliation, but same additional affiliationAuthor affiliation with only 1 authorAdding Multiple Authors with Different Affiliation in LaTeX ArticleLaTeX: Multiple authors stays on same lineHow to Label Multiple Authors with Same DescriptionHow to make two authors use the same affiliationTwo authors with same affiliation on finished front page

          How to write “ä” and other umlauts and accented letters in bibliography?Accents in BibTeXSorting references with special characters alphabeticallyUse ae ligature in bibliographyEastern European nameInverted circumflex in BibTexBibTex, non-ascii initials and nameptr fproblems with accent in LatexHow to add a Ø to my bibliography from Jabref?References without accentsTroubles when trying to cite St“omer-Verlet in ”title" field of a bib entryComprehensive list of accented charactersHow to type the letter “i” with two dots (diaeresis) in math mode?Problem with glossary text and accented lettersSpecial character in bibliographyAccented letters, Unicode and LaTeX accentsHow to stop natbib from modifying bibliography styleCitation of a paper with non-standard characters by BibtexWrite accented characters to file using writeHow to group the bibliography alphabetically, if some surnames start with “accented” characters?How can I automatically capitalize significant words in my bibliography?

          How to force a table into page width?How to make table spanning textwidthMaking table width fit into text widthTable with tabular, column type p grabbing available spaceMaking widths of tables equal to width of textblocklatex tabular width the same as the textwidthMake tabular span textwidth exactlySet width of table to be the whole line or a given portion of itIs the tabu package obsolete?What is the difference between tabular, tabular* and tabularx environments?How can i set the width of a table?Making table width fit into text widthTabular and grid typesettingMake table use page widthTable exceeds page widthtable width automatically to page widthHow to shrink table to page widthForce table column to be zero widthTable width exceeds the page widthTable extending beyond the page widthforce longtable to text width